|
|
@ -1,24 +1,13 @@ |
|
|
|
import logo from './logo.svg'; |
|
|
|
import './App.css'; |
|
|
|
import React from "react" |
|
|
|
import { Route, Switch } from "react-router-dom" |
|
|
|
|
|
|
|
import InfoPage from "./component/InfoPage.jsx" |
|
|
|
|
|
|
|
function App() { |
|
|
|
return ( |
|
|
|
<div className="App"> |
|
|
|
<header className="App-header"> |
|
|
|
<img src={logo} className="App-logo" alt="logo" /> |
|
|
|
<p> |
|
|
|
Edit <code>src/App.js</code> and save to reload. |
|
|
|
</p> |
|
|
|
<a |
|
|
|
className="App-link" |
|
|
|
href="https://reactjs.org" |
|
|
|
target="_blank" |
|
|
|
rel="noopener noreferrer" |
|
|
|
> |
|
|
|
Learn React |
|
|
|
</a> |
|
|
|
</header> |
|
|
|
</div> |
|
|
|
<Switch> |
|
|
|
<Route exact path="/:info" component={InfoPage} /> |
|
|
|
</Switch> |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|