react-reload-component
v1.2.0
Published
Update component when location is same
Downloads
12
Readme
react-reload-component
Update component when location is same
Install
$ npm install --save react-reload-component
# or
$ yarn add react-reload-component
Usage
import { ReloadComponent } from 'react-reload-component'
<ReloadComponent
location={this.props.location}
onReload={() => {
// tslint:disable-next-line:no-console
console.log('reloaded')
}}
>
<div className='Foo' />
</ReloadComponent>,
License
MIT © bang