Chapter 5

  1. Why should monolithic React components be avoided?
    1. Because they're difficult to comprehend, and difficult to refactor into smaller reusable components later on.
  2. Why should you make components functional?
    1. 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.
  3. How do render props simplify React apps?
    1. They reduce the number of direct dependencies that a component has, allowing you to compose new behavior.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.30.162