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 | 31 |
Tags
- firebase
- nodejs
- Android
- 자바스크립트
- typescript
- 안드로이드
- 파이어베이스
- HTML
- stdin vs input
- C++
- kotlin
- NPM
- k for k
- next Link
- 백준 스택 시간초과 python
- 타입스크립트
- CSS
- JS
- 백준 스택
- 프론트엔드
- 알고리즘
- Python
- 스택
- TS
- 최적화
- javascript
- 리액트
- 코딩테스트
- 파이썬
- react
Archives
- Today
- Total
목록getServerSideProps (1)
sooleeandtomas

getServerSideProps 만약 페이지에서 getServerSideProps를 사용한다면, next.js는 페이지를 요청할 때마다 데이터를 가져옵니다. function Page({ data }) { // Render data... } // This gets called on every request export async function getServerSideProps() { // Fetch data from external API const res = await fetch(`https://.../data`) const data = await res.json() return { props: { data } } // 페이지의 컴포넌트에 이 props를 전달하게 된다. } export default..
코딩 공부 노트/next js
2023. 6. 30. 00:08