fullstack-hy2020 / fullstack-hy2020.github.io

https://fullstack-hy2020.github.io
Other
1.53k stars 3.84k forks source link

clearer explanation of state immutability and react rendering (update 2d) #3754

Closed divywnzh closed 1 month ago

divywnzh commented 1 month ago

in reference to the content, the addition now explains (reminds) how modifying the state directly can prevent react from detecting changes, as react relies on object references to detect changes and trigger re-renders.