Classes have a number of drawbacks, and contrary to popular belief, React is not immune to them. Thankfully, there are some great alternatives that will make your React components easier to work with and share across your app, and even completely unrelated apps and projects.
React 0.14 introduced the ability to create pure components, and the popularity of higher order components for composition has spread through the React community as an alternative to mixins. You can even use stamps: react-stamp brings stamp-based factory composition to your React components.
This webcast will walk you through the process of creating your first pure component and teach you how to use component composition techniques instead of class inheritance to create and reuse component behaviors.
- Pure Components
- How to Unit Test Pure Components
- Stamp Composition & React-stamp
- Higher Order Components (HOC)
- When to Use Smart vs Dumb Components