2018-02-20 23:31:05 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { Route, Switch } from 'react-router-dom';
|
2018-02-22 19:48:46 +01:00
|
|
|
import routes from './routes';
|
2018-02-20 23:31:05 +01:00
|
|
|
|
|
|
|
const App = () => {
|
|
|
|
return (
|
|
|
|
<Switch>
|
2018-02-22 19:48:46 +01:00
|
|
|
{routes.map((route, index) => (
|
|
|
|
<Route key={index}{...route} />
|
|
|
|
))}
|
2018-02-20 23:31:05 +01:00
|
|
|
</Switch>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default App;
|