Files
freeCodeCamp/common/app/appFactory.jsx
Berkeley Martinez a8540bee35 add initial react app
2015-06-17 21:04:28 -07:00

19 lines
394 B
JavaScript

import React from 'react';
import { Router, Route } from 'react-router';
// components
import App from './App.jsx';
import Jobs from './screens/App/screens/Jobs';
module.exports = function appFactory(history) {
return (
<Router history={ history }>
<Route handler={ App }>
<Route
component={ Jobs }
path='/jobs' />
</Route>
</Router>
);
};