3 ms·
> To be fair, mutating props was frowned upon pretty early on. Yeah that’s what I’m saying :)
by linkmotif 9y ago
> To be fair, mutating props was frowned upon pretty early on.
Yeah that’s what I’m saying :)
- danabramov 9y agoThe Discord article authors are incorrect in saying mutating props broke with React 16. What really happened is that they switched from createClass to ES6 classes. ES6 class methods have implicit 'use strict' mode. They weren't forced to switch to ES6 classes if they didn't want to. createClass is on npm (create-react-class) and still works fine.