SHARE
TWEET

Untitled

a guest Mar 21st, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. import { Switch, Route } from 'react-router-dom';
  3. import LandingPage from './LandPage';
  4. import About from './About';
  5. import Contact from './Contact';
  6. import Hospitals from './Hospitals';
  7. import Resume from './Resume';
  8. import ReginaMariaDocs from './ReginaMariaDocs';
  9. import HumanitasDocs from './HumanitasDocs';
  10.  
  11. const Main = () => (
  12.     <Switch>
  13.         <Route exact path="/" component={LandingPage} />
  14.         <Route path="/about" component={About} />
  15.         <Route path="/contact" component={Contact} />
  16.         <Route path="/hospitals" component={Hospitals} />
  17.         <Route path="/resume" component={Resume} />
  18.         <Route path="/reginaMariaDoc" component={ReginaMariaDocs} />
  19.         <Route path="/humanitasDocs" component={HumanitasDocs} />
  20.     </Switch>
  21. )
  22.  
  23.  
  24. export default Main;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top