hugorod19 / M4-DQ3-Conditional-Rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conditional Rendering Discussion Question

Get together in groups and clone down this repository. For the purposes of this discussion question, you should work only out of components/MenuBar.js and containers/MainBox.js. Your end goal is to make this app function like so:

alt text

A few things to think about:

  1. Which component should have state?
  2. Based on your answer to the question above, which component should have a method to change state?
  3. Which component should call the function that changes state?
  4. Which component is responsible for passing down props?
  5. How can state be used to manage the rendering of components and change the style of components already on the page?

About


Languages

Language:JavaScript 73.2%Language:HTML 21.0%Language:CSS 5.8%