Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- AWS
- ELB
- Algorithm
- 리액트
- url parsing
- EventListener
- 토이프로젝트
- 자료구조
- BFS
- EC2
- react
- 라우터
- 백준
- 알고리즘
- sort
- 스터디
- nodejs
- 백준알고리즘
- spring
- 다익스트라 알고리즘
- Router
- 탐욕법
- 정렬
- 서버구축
- Spring Boot
- mysql
- 동적프로그래밍
- java
- 브루트포스
- 완전탐색
Archives
- Today
- Total
목록router props (1)
공부하는 블로그
React | Router : match, location, history
Router Props 브라우저와 리액트앱의 라우터를 연결하게 되면 그 결과 라우터가 history api에 접근할 수 있게 되며 각각의 Route와 연결된 컴포넌트에 props로 match, location, history라는 객체를 전달하게 된다. import React from 'react'; import { BrowserRouter as Router, Route, Switch, Link } from 'react-router-dom'; import Home from './components/home'; import Community from './components/community'; import Mypage from './components/mypage'; function App() { retu..
React
2020. 1. 17. 19:57