Tag: React Router

Test React-Router Previous Params for Component Update

Once upon a time, react-router transferred params and query params from the url via props into components. It doesn’t happen this way any more. So, let’s say you have a need in your component like overriding shouldComponentUpdate in your component which only has access to this.props and this.state. How can you use the url data to affect the component re-render or not?

React-Router with Flux

react-router provides great route handling with route params and query params. Flux provides a pattern for building React apps, including a pattern from providing data to your components. Here’s a straightforward way to make route changes trigger data changes in your components.