reading-notes

Thinking In React

  1. What is the single responsibility principle and how does it apply to components?

-A component should only really do one thing, if it changes it should decompose into smaller sub components

  1. What does it mean to build a ‘static’ version of your application?
  1. Once you have a static application, what do you need to add?
    • You need to add all your components and use them. Also, pass data using props.
  2. What are the three questions you can ask to determine if something is state?
  1. How can you identify where the state needs to live?

Higher order functions

  1. What is a “higher-order function”?
  1. Explore the greaterThan function as defined in the reading. In your own words, what is line 2 of this function doing?
  1. Explain how either map or reduce operates, with regards to higher-order functions.