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

Readme

Keywords

none

Package Sidebar

Install

npm i react-reload-component

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • bang88