react-state-match-router

0.1.1 • Public • Published

React state matching router component

A simple Router component that renders the given children based on the status you pass-in.

install

npm i react-state-match-router

Example

<StateRouter state="loading" fallback={<NotFound />}>
    <Loading match="loading" />
    <List match="success" />
    <Sidebar match="success" />
</StateRouter>

Readme

Keywords

Package Sidebar

Install

npm i react-state-match-router

Weekly Downloads

4

Version

0.1.1

License

none

Unpacked Size

2.97 kB

Total Files

4

Last publish

Collaborators

  • lyn0tt