SHARE
TWEET

Untitled

a guest Aug 19th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component, Fragment } from "react";
  2. import { Switch, Route } from "react-router-dom";
  3. import Routes from "../routes";
  4. import Header from "./components/header/header";
  5.  
  6. export default class App extends Component {
  7.   render() {
  8.     return (
  9.       <Fragment>
  10.         <Header />
  11.         <Switch>
  12.           {Routes.map((c, index) => (
  13.             <Route key={index} path={c.url} exact component={c.component} />
  14.           ))}
  15.         </Switch>
  16.       </Fragment>
  17.     );
  18.   }
  19. }
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
 
Top