react-state-match-router
v0.1.1
Published
A simple Router component that renders the given children based on the status you pass-in.
Downloads
4
Readme
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-routerExample
<StateRouter state="loading" fallback={<NotFound />}>
<Loading match="loading" />
<List match="success" />
<Sidebar match="success" />
</StateRouter>