npm

Need private packages and team management tools?Check out npm Orgs. »

react-router-wizard

0.1.1 • Public • Published

react-router-wizard

A React container for assembling components into a wizard interface. Works with react-router.

Installation

Install with npm (or yarn).

npm install react-wizard --save

Usage

import React, { Component } from 'react';
import { HashRouter } from 'react-router-dom';
import Wizard, { Step } from 'react-router-wizard';

export default class App extends Component {
  render() {
    return (
      <HashRouter>
        <Wizard>
          <Step>
            <h1>Welcome to Step 1</h1>
          </Step>
          <Step>
            <h1>Welcome to Step 2</h1>
          </Step>
          <Step>
            <h1>Welcome to Step 3</h1>
          </Step>
        </Wizard>
      </HashRouter>
    );
  }
}

License

MIT. Copyright (c) 2017 Jonathan Conway.

install

npm i react-router-wizard

Downloadsweekly downloads

1

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability