0.1.1 • Published 4 years ago

react-state-match-router v0.1.1

Weekly downloads
9
License
-
Repository
-
Last release
4 years ago

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>
0.1.1

4 years ago

0.1.0

4 years ago