이수빈

autumn.js 결과 출력

This diff is collapsed. Click to expand it.
......@@ -20,9 +20,9 @@ class App extends Component {
<Route path="/test2" exact component={Test2} />
<Route path="/test3" exact component={Test3} />
<Route path="/spring" exact component={Spring} />
<Route path="/summer?ver=0" exact component={Summer} />
<Route path="/autumn?ver=0" exact component={Autumn} />
<Route path="/winter?ver=0" exact component={Winter} />
<Route path="/summer" exact component={Summer} />
<Route path="/autumn" exact component={Autumn} />
<Route path="/winter" exact component={Winter} />
</BrowserRouter>
</div>
)
......
import React from 'react';
import './spring.css?ver=1.4';
import autumn from './season/autumn.png';
const Autumn = ( { history } ) =>
{
return (
<div className='autumn_class'>
<img src = {autumn} width='1300' height='600' alt = "autumn"/>
<div id="btn_back">
<button id="back_btn" onClick={ () => {history.push("/")}}>back</button>
</div>
</div>
);
}
export default Autumn;
\ No newline at end of file
......