부모 Postlist} /> const Postlist= (props: RouteComponentProps) =>{return( Postlist} /> /** Post 호출**/);}; const Post= (props: RouteComponentProps) =>{function goNextPost() {const nextPostId= +props.match.params.postId+ 1;props.history.push(`/posts/${nextPostId}`);}return(Post {props.match.params.postId}페이지 이동{new URLSearchParams(props.location.search).get('body')});}; switch 모듈 일반switch 문처럼비교 의pat..
Angular에서처럼Route를이용해서PathVariable을받을수있다. 이런식으로path에다가parameter를받을값을정해준다. 그래고RouteComponentProps를이요해제네릭에받을파라미터명을입력하고match를이용해파라미터를받는다const Post= (props: RouteComponentProps) =>{return(Post {props.match.params.postId});}; RouteComponentProps의 속성은 다음과 같다. history: H.History; 브라우저의 window.history객체와 비슷함, 주소를 임의로 변경 하거나 되돌아 갈 수 있다.주소를변경하더라도spa 동장방식에맞게페이지일부만리로드 location: H.Location; 브라우저의window.locati..
- Total
- Today
- Yesterday
- data gird component
- 파이썬
- JavaScript
- jQuery
- Redux
- 페이스북 로그인
- Spring Boot
- https://www.tistory.com/auth/logout/
- 파이썬3
- JSON
- python3
- Java
- data component
- Spring
- facebook login
- data component module
- mobx
- data table component
- data grid component
- JPA
- MySQL
- react
- Angular
- React-router
- Router
- CSS
- Python
- localStorage
- angular router
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |