Created
October 14, 2020 17:02
-
-
Save blogcacanid/726fdb4aa618cc2910edcd013f7174a3 to your computer and use it in GitHub Desktop.
App.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 ReactDOM from 'react-dom'; | |
import {HashRouter , Link} from 'react-router-dom'; | |
import RouterPath from './RouterPath'; | |
import Header from "./_layouts/Header.js"; | |
import Sidebar from "./_layouts/Sidebar.js"; | |
import Footer from "./_layouts/Footer.js"; | |
export default class App extends Component { | |
render() { | |
return ( | |
<HashRouter> | |
<Header /> | |
<Sidebar /> | |
<div className="content-wrapper"><RouterPath/></div> | |
<Footer /> | |
</HashRouter > | |
) | |
} | |
} | |
if (document.getElementById('app')) { | |
ReactDOM.render( | |
<App/>, | |
document.getElementById('app')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment