Code Editor
Web Browser
Learn
Stateless Components From Stateful Components

Pass a Component's State

A <Parent /> is supposed to pass its state to a <Child />.

Before a <Parent /> can pass anything to a <Child />, you need to import Child into Parent.js.

Report a Bug
If you see a bug or any other issue with this page, please report it here.