Hey!
I’ve been using react-router with meteor like this for a while. but since the upgrade to version 4, this is no longer working. Ive been googling but having a hard time figuring out how to update this code and get it working again
routes.js
import React from 'react';
import { Router, Route, browserHistory } from 'react-router';
// route components
import App from '../ui/App.jsx';
import Settings from '../ui//Settings/Settings.jsx';
import Recipe from '../ui/Recipe/Recipe.jsx';
export const renderRoutes = () => (
<Router history={browserHistory}>
<Route path="/" component={App}>
<Route path="/r" component={Recipe}>
<Route path="/r/:username" component={Recipe}>
<Route path="/r/:username/:recipe" component={Recipe}>
<Route path="/r/:username/:recipe/:edit" component={Recipe}/>
</Route>
</Route>
</Route>
<Route path="/settings" component={Settings}/>
<Route path="*" component={Settings}/>
</Route>
</Router>
)