An optional function that is called whenever the browser's hash (i.e. window.location.hash) changes.
The render function is invoked with an object argument: ({ hash }).
It's expected that render function returns a single React element.
This has same API semantics as React.Component.render().
If render function is given, it has precedence over any given child component:
<HashChange render={() => { return ( <div>"I take precedence over any function as child component."</div> ); }}> {() => { return <div>"I will not render."</div>; }}</HashChange>
Function as child component (optional)
Same as render prop function (see above).
If render function is not given, then the child component will be invoked as a function.
The child component function is invoked with an object argument: ({ hash }).