Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
</head>
<body>
<div>123</div>​
<div>456</div>
</body>
@jasonwarta
jasonwarta / App.js
Created January 2, 2019 10:14 — forked from shelldandy/App.js
nprogress with react-router in create-react-app
import React from 'react'
import { BrowserRouter as Router, Switch } from 'react-router-dom'
import routes from './routes'
import FancyRoute from './components/tools/FancyRoute'
const App = props =>
<Router>
<Switch>
{routes.map((route, i) =>
<FancyRoute key={i} {...route} />