reading-notes


Project maintained by mr-atta Hosted on GitHub Pages — Theme by mattgraham

react

Thinking In React 🤔

### How would you break a mock into a component heirarchy ❓

👉 Break The UI Into A Component Hierarchy· 👉 Build A Static Version in React · 👉 Identify The Minimal (but complete) Representation Of UI State.

### What is the single responsibility principle and how does it apply to components❓

### What does it mean to build a ‘static’ version of your application❓

### Once you have a static application, what do you need to add?

### What are the three questions you can ask to determine if something is state❓

👉 Is it passed in from a parent via props? If so, it probably isn’t state.

👉 Does it remain unchanged over time? If so, it probably isn’t state.

👉 Can you compute it based on any other state or props in your component? If so, it isn’t state.

### How can you identify where state needs to live❓

Thinking In React

React’s one-way data flow

♥️from ♥️from