📜  反应如何工作 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:13.002000             🧑  作者: Mango

代码示例1
React creates a VIRTUAL DOM in memory.
Instead of manipulating the browser's DOM directly, 
React creates a virtual DOM in memory, 
where it does all the necessary manipulating, 
  before making the changes in the browser DOM.
then changes only what needs to be changed