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… #3755

Open divywnzh opened 1 month ago

divywnzh commented 1 month ago

… part2d.md)

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.