# ReactRouterDom
총 2개의 포스트

React Router Dom / Flow& Axios / CORS이슈 & Proxy 설정 / Concurrently / Redux 기초 / #20~#26
React Router Dom 리액트에서는 페이지 간 이동을 할 때 "react router dom" 이라는 것을 쓴다. >https://reactrouter.com/docs/en/v6/upgrading/v5 수업기준 v.5 -> Router node v.6 으로 바뀌었기 때문에 위와 같이 코드를 작성해야 한다.  Single Rocket Page not showing after Refresh( Parameter & React BrowserRouter )
Code > client.jsx > ShipSingleConatainer.js > In short 1) use 'param' to get the 'id' of rocekt 2) use 'id' from 'param' to use 'graphql query' 3) get the data from 'graphql query' > " id passed through params get lost on page refresh " BUT after I refresh , 'param' is undefined, therefore, the 'data' is not loaded How Can I maintain 'param' even after refresh ? In order to solve this, we have to understand how React deals with 'route' or 'url' If you have no Server ru
2021년 2월 25일
·
0개의 댓글·
0