react-reload-component
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i react-reload-component

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • bang88