Best Practices for Component State in React.js
brewhouse.io
brewhouse.io
- 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".