- Why should monolithic React components be avoided?
- Because once components reach a certain size, the performance of the overall app begins to suffer.
- Because they're difficult to comprehend, and difficult to refactor into smaller reusable components later on.
- You don't need to worry about avoiding monolithic components.
- Why should you make components functional?
- Functional components only rely on property values that are passed to it. They don't rely on state or lifecycle methods, both potential problem sources.
- Functional components are easier to read.
- You shouldn't make components functional, even if they don't have any state.
- How do render props simplify React apps?
- They reduce the amount of code that you need to write for a given component.
- They don't simplify React apps.
- They reduce the number of direct dependencies that a component has, allowing you to compose new behavior.