Skip to content

Instantly share code, notes, and snippets.

View anderjs's full-sized avatar
:electron:
Learn never exhaust the mind

Anderson anderjs

:electron:
Learn never exhaust the mind
View GitHub Profile
@anderjs
anderjs / index.js
Created August 7, 2019 19:57
Router config
import React from 'react'
import { BrowseRotuer as Router, Switch, Route } from 'react-router-dom'
import Dashborad from './views/Dashboard.js'
function App() {
return (
<Router>
<Switch>
<Route exact path='/dashboard' component={Dashboard} />