Register a route change in React-router 1.0

- 1 answer

Ad

Don't you know how can I register a route change in React-router 1.0? I have tried few classic react event listeners like onChange and it's not working. Any ideas?

Ad

Answer

Ad

You can try the onEnter/onLeave hooks.

Ad
source: stackoverflow.com
Ad