How to immutably edit a DOM element (functional programming)?

前端 未结 0 1480
予麋鹿
予麋鹿 2020-12-02 03:54

I know that creating DOM elements in Javascript is pure.

const element = document.createElement(\'div\') // createElement is a pure function

相关标签:
回答
  • 消灭零回复
提交回复
热议问题