Skip to content

Instantly share code, notes, and snippets.

@nodox
Created July 1, 2018 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nodox/e4c4ad188a22b2c40a8a82c06a886ee7 to your computer and use it in GitHub Desktop.
Save nodox/e4c4ad188a22b2c40a8a82c06a886ee7 to your computer and use it in GitHub Desktop.
Building a stepper - app.js
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