Skip to content

Component Composition

Melissa Stock edited this page Jun 20, 2019 · 1 revision

react basics recap

react UML

  • HOC: A higher-order component is a function that takes a component and returns a new component.

props.children

  • Definition: it is used to display whatever you include between the opening and closing tags when invoking a component.
  • Syntax : this.props.children

browser router tutorial

  • Used in single page application websites
  • React Router has been broken into three packages: react-router, react-router-dom, and react-router-native.
  • Syntax for rendering : <BrowserRouter>
  • Syntax for routes : <Route path='/schedule' component={Schedule}/>
  • Syntax for links :
  • Schedule

Clone this wiki locally