Created
October 14, 2020 17:01
-
-
Save blogcacanid/b74c962f1d2e06213c09e66d0a838a75 to your computer and use it in GitHub Desktop.
RouterPath.js Integrasi AdminLTE 3.0.5 Laravel 7 Dan React JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import {Route, Switch} from 'react-router-dom'; | |
import Home from "./Home.js"; | |
import Blank from "./Blank.js"; | |
import About from "./About.js"; | |
class RouterPath extends Component { | |
render() { | |
return ( | |
<main> | |
<Switch> | |
<Route exact path='/' component={Home}/> | |
<Route exact path='/about' component={About}/> | |
<Route exact path='/blank' component={Blank}/> | |
</Switch> | |
</main> | |
) | |
} | |
} | |
export default RouterPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment