I have a Meteor 1.3 project here that uses React Router.
Before using Meteor 1.2 and FlowRouter, I could just href
some links using normal paths and it would switch React components without reloading the page.
Now when I click around I get full-page reloads.
What am I doing wrong?
My routes.jsx file:
import React from 'react';
import { Router, Route, browserHistory } from 'react-router';
import AppLayout from '/imports/ui/layouts/AppLayout.jsx';
import CategoryContainer from '/imports/ui/containers/CategoryContainer.jsx';
export const renderRoutes = () => (
<Router history={browserHistory}>
<Route path="/" component={AppLayout}>
<Route path="category/:categorySlug" component={CategoryContainer}/>
</Route>
</Router>
)