After implementing routes I get error| Failed prop type: The prop `history` is marked as required in `Router`, but its value is `undefined`

( new to react and metor world )

when i replace the App with routes,

import React from ‘react’;
import ReactDOM from ‘react-dom’;
import { Router, Route, IndexRoute, browserHistory } from ‘react-router’;

import App from ‘./components/app’;
import { Bins } from ‘…/imports/collections/bins’;

const routes = (


Meteor.startup( () => {
ReactDOM.render (routes, document.querySelector(’.render-target’));

The Router component requires a history prop. Generally speaking you’ll want browserHistory which can be imported from react-router and then passed as the history prop.

import { browserHistory, Router } from 'react-router';

const routes = (
    <Router history={browserHistory} >
        // routes