If you want to control how often a certain function is being called, you can use debounce ( a small lodash utility). In this small video Elijah Manor explains the use and the caveats of debounce in React components: Debouncing events
Category Archives: React
Using HOC withRouter with React Router 4
I didn’t know that when a component is not being rendered by your router, it still can use the router properties history, match and location when you wrap it in the withRouter HOC: import { withRouter } from ‘react-router-dom’ … this.props.history.push(‘/some-route’) … export default withRouter(ThisComponent) See: Programmatically navigate with React Router.