reading-notes

Hooks API

  1. Why do we not need more .html pages in a multi-page React app?

Because one html page can serve as the template where all of the components will be rendered to by ReactDOM to the root div within the html body.

  1. If we wanted a component to show up on every page, where would we put it and why?

Inside the , outside a - I’m not sure why exactly. I would guess it’s because the components should be recognized as a route within BrowserRouter but outside of the routes themselves as a overall applicable components whenever the specific routes are rendered.

  1. What does props.children contain? It’s a property that can be passes to any component if referred to as props.children to render information. src

Terms

Composition - A natural pattern of the component mode used to build components using other component through the use of props.src

Children / Child Components - Dependent on parent components for information through props sent from parents in order to render content/send back information.

Hash Routing - uses the hash portion of URL to keep UI in sync with URLsrc

Link Routing - Declarative, accessible navigation around the applicationsrc

prep

making sense of hooks

the state hook

hooks api

hooks api reference

effects hook