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
- javascript
- map
- async
- 상속
- react
- 스크롤이벤트
- Next.js
- materialicons
- set
- forwardref type
- 슬라이딩윈도우
- array
- app:compiledebugkotlin
- reactnative error
- npm에러
- app.post
- mainapplication.kt
- generic
- TS
- 안드로이드빌드에러
- 배열중복요소제거
- interface
- Filter
- Spring
- 이진탐색
- 리액트네이티브아이콘
- extends
- err_connection_refused
- reactnative
- 타입스크립트
Archives
- Today
- Total
목록ServerComponent (1)
rhanziy
Next.js - server/client component
Next.js에서는 server component, client component 2가지 종류의 component가 있다! 리액트에서 하던 방식대로 component를 그냥 만들면 server component임. component 만드는법 function 작명() { } return ( html ) 으로 사용 export default function Cart() { return ( Cart ) } function CartItem(){ return( 상품명 $40 1개 ) } 여기서는 CartItem이 server component 임. server component? html 상에 자바스크립트 기능 넣기 불가능(ex. onClick) useState, useEffect 사용 불가능 로딩..
Next.js
2023. 10. 12. 15:02