3 ms·
State in React should be immutable. It’s not rare at all!
by pharmakom 5y ago
State in React should be immutable. It’s not rare at all!
- junon 5y agoReact != JavaScript.
- pharmakom 5y agoYeah, of course. But vast majority of React is written in JavaScript and large numbers of JavaScript devs are writing React. It shows FP and immutability have significant base of practitioners in JS world - although many might not realise it.
- junon 5y agoI would argue most JavaScript developers do not use React. Perhaps in your own bubble, but there are way more people writing other things in JavaScript.