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
- npm에러
- 타입스크립트
- TS
- err_connection_refused
- 배열중복요소제거
- Next.js
- app:compiledebugkotlin
- generic
- extends
- interface
- app.post
- 스크롤이벤트
- 안드로이드빌드에러
- array
- materialicons
- set
- react
- 슬라이딩윈도우
- 리액트네이티브아이콘
- Filter
- reactnative error
- forwardref type
- mainapplication.kt
- async
- reactnative
- map
- 상속
- Spring
- 이진탐색
- javascript
Archives
- Today
- Total
목록React-Router-Dom (1)
rhanziy
react. react-router-dom
import { BrowserRouter as Router, Routes, Route, } from "react-router-dom"; import Detail from "./routes/Detail"; import Home from "./routes/Home"; function App() { return ( ); } export default App; import { ... } from "react-router-dom"; 을 해줌으로써 지정한 url로 이동하면 원하는 컴포넌트들을 화면에 띄울 수 있다. {title} ({year}) Movie 컴포넌트로 가서 title부분에 a태그로 링크를 걸어주면 간단하게 이동! 여기서 새로고침 없이도 다른페이지로 이동하려면 import { Link } from "r..
React
2022. 3. 12. 17:18