1.2.0 • Published 6 years ago

react-reload-component v1.2.0

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

react-reload-component Build Status

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

1.2.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago