Last active
October 19, 2020 10:06
-
-
Save blogcacanid/1e7bf779462eea97df2c3b3029761102 to your computer and use it in GitHub Desktop.
App.js CRUD Pagination Laravel 7 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 { BrowserRouter, Route, Switch } from 'react-router-dom' | |
import Header from './Header' | |
import './App.css'; | |
import PegawaiList from './PegawaiList' | |
class App extends Component { | |
render () { | |
return ( | |
<BrowserRouter> | |
<div> | |
<Header /> | |
<Switch> | |
<Route exact path='/' component={PegawaiList}/> | |
</Switch> | |
</div> | |
</BrowserRouter> | |
) | |
} | |
} | |
ReactDOM.render( | |
<App />, | |
document.getElementById('app') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment