This link describes how you can set a ref on a component and call its functions from a parent: https://facebook.github.io/react/tips/expose-component-functions.html
How do i achieve this when i'm using react-router and the component I want to ref is a route and the parent is the root component?