Class 05 Reading Notes
Home
Table of Contents
- Thinking in React
- How would you break a mock into a component heirarchy? Divide by task/group/purpose/design/order
- What is the single responsibility principle and how does it apply to components? Single responsibility principle is that a component should ideally only do one thing
- What does it mean to build a ‘static’ version of your application? no interactivity, just structure code
- Once you have a static application, what do you need to add? interactivity
- What are the three questions you can ask to determine if something is state?
- How can you identify where state needs to live? It’s about one-way data flow, so identifying a common owner component is the key