reading-notes

Reading Notes

View the Project on GitHub simon-panek/reading-notes

Code 401: Class 29 - Routing


Questions

  1. Do child components have direct access to props/state from the parent? Yes, via this.props

  2. When a component “wraps” another component, how does the child component’s output get rendered? Child components conditionally render UI based on the state passed to them from the wrapping component

  3. Can a component, such as <Content />, which is a child also be used as a standalone component elsewhere in the application? Stateless components can be rendered by other parent components

  4. What trick can a parent use to share all props with it’s children? Using the spread operator allows all of a parents props to be passed to its child

Vocabulary

Read: Browser Router Tutorial

Read: Browser Router API Docs

Bookmark: React-if Component

Bookmark: React testing library queries

Bookmark: Aria Roles


Return to reading-notes Deployed Site

Return to reading-notes Mark Down