Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render={props => {
// Get the component for this path
let Comp = getComponentForPath(getRoutePath(props.location.pathname))
if (!Comp) {
Comp = getComponentForPath('404')
}
// When we're rendering for static HTML, be sure to NOT animate in.
if (routePath) {
return (
// This relative wrapper is necessary for accurate rehydration :)
<div style="{{">
</div>
)
}
// Use React-Move to animate the different components coming in and out
return (