reading-notes

These are my reading notes for Code Fellows


Project maintained by taegorov Hosted on GitHub Pages — Theme by mattgraham

Home

Reading Notes Code 301: Day 5

Mock design:

image1

Mock design broken up into components:

image2

The colored boxes around each component represent the following (last part of the bullet is an example component name):

  1. Orange - the entire example - productTable
  2. Blue - accepts user input - searchBar
  3. Green - the data to be filtered by user input - productTable
  4. Turquoise - each category’s heading - categoryRow
  5. Red - the actual product - productRow

The reading also suggests breaking down/organizing the hierarchy like so:

It’s best to decouple these processes because building a static version requires a lot of typing and no thinking, and adding interactivity requires a lot of thinking and not a lot of typing.

(source)

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

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

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

(source)