Created
July 1, 2018 20:56
-
-
Save nodox/e4c4ad188a22b2c40a8a82c06a886ee7 to your computer and use it in GitHub Desktop.
Building a stepper - app.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { render } from "react-dom"; | |
import { StepList } from "./StepList"; | |
import { Step } from "./Step"; | |
const PageTwo = () => ( | |
<h2>We have a second page.</h2> | |
) | |
const PageThree = () => ( | |
<h2>Page three is working.</h2> | |
) | |
const App = () => ( | |
<StepList> | |
<Step> | |
<h1>Hello world on page one!</h1> | |
</Step> | |
<Step component={PageTwo} /> | |
<Step component={PageThree} /> | |
</StepList> | |
); | |
render(<App />, document.getElementById("root")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment