0.1.0 • Published 6 years ago

react-reviver v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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.