0.1.0 • Published 6 years ago
react-reviver v0.1.0
react-reviver
Revive a component to the state when it unmount.
usage
import reviver from {react-reviver}
const Routes = () => (
<main>
<Switch>
<Route exact path='/' component={App}/>
<Route path='/items/:id' component={Item}/>
<Route path='/items' component={reviver(Items, {id: '/itmes'})}/>
</Switch>
</main>
)
WIP
TO BE CONTINUED.
0.1.0
6 years ago