Skip to content

Instantly share code, notes, and snippets.

View amirrivand's full-sized avatar
♥️
Loving You

Amir Rivand amirrivand

♥️
Loving You
View GitHub Profile
@amirrivand
amirrivand / App.js
Created September 12, 2021 16:03 — 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} />