miaypc / react-12-challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React 12 - Lifting State Up - Challenge

As usual, you'll find all the components under the src folder:

  • App: "root" component (other "dummy" components are provided)
  • TabSelector: allows to select a tab

You have to modify the components, so that:

  • the activeId is present only in App component's state,
  • it is passed to TabSelector,
  • the method allowing to change activeId is in the right place

About


Languages

Language:JavaScript 74.8%Language:HTML 16.7%Language:CSS 8.5%