1 2 3 4 5 6 7 8 9 10 11 12 13 | 2x 3x | import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { Home, About } from './containers'; const Routes = () => ( <Switch> <Route exact path="/" component={Home} /> <Route path="/about" component={About} /> </Switch> ); export default Routes; |