4 ms·
Best Practices for Component State in React.js
- ekryski 12y agoNice writeup! 2 knit-picky points: - I would amend point 3 to also include helper methods/modules. I like to keep my render functions pretty small so I'll usually call helper methods or have an external module if the calculations are pretty hairy. - cx is soon to be deprecated and now you can use the module "classnames".