change directory name
This commit is contained in:
19
react+springboot/react-practice/practice/01/App.js
vendored
Normal file
19
react+springboot/react-practice/practice/01/App.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Route } from 'react-router-dom';
|
||||
import './App.css';
|
||||
import Footer from './components/Footer';
|
||||
import Header from './components/Header';
|
||||
import HomePage from './pages/HomePage';
|
||||
import LoginPage from './pages/LoginPage';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<>
|
||||
<Header />
|
||||
<Route path="/" exact={true} component={HomePage} />
|
||||
<Route path="/login/:id" exact={true} component={LoginPage} />
|
||||
<Footer />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user