일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- HTML
- tailwindcss
- express.js
- Interface
- graphQL
- built in object
- blockchain
- CSS
- REACT
- web
- node.js
- Props
- Ethereum
- solidity
- JavaScript
- CLASS
- nextJS
- Redux
- useState
- evm
- SSR
- hardhat
- typeScript
- API
- concept
- bitcoin
- middleware
- 삶
- 기준
- error
- Today
- Total
목록ISR (2)
ReasonJun
import Head from 'next/head'; import { Inter } from 'next/font/google'; import Link from 'next/link'; import { useEffect, useState } from 'react'; const inter = Inter({ subsets: ['latin'] }); export async function getStaticProps() { return { props: { time: new Date().toISOString() }, }; } export default function ISR({ time }) { return ( {time} ); } The data is updated when the page is refreshed.
SSG and ISR are two different ways of rendering web pages. SSG stands for Static Site Generation, and ISR stands for Incremental Static Regeneration. SSG is a technique where the pages of a website are rendered on the server before the user requests them. This means that the pages are pre-rendered and served to the user as static files. SSG has a number of benefits, including: Faster page load t..