Skip to content
Jinlee Jeong edited this page Mar 3, 2020 · 3 revisions

Next.js

  1. 기본적으둜 μ„œλ²„ μ‚¬μ΄λ“œμ—μ„œ λ Œλ”λ§μ„ ν•œλ‹€.

  2. 더 λΉ λ₯΄κ²Œ νŽ˜μ΄μ§€λ₯Ό 뢈러였기 μœ„ν•΄ μ½”λ“œ μŠ€ν”Œλ¦ΏνŒ…μ„ μ§„ν–‰ν•œλ‹€.

    (μ½”λ“œ μŠ€ν”Œλ¦ΏνŒ… : λΈŒλΌμš°μ € λ‘œλ”© μ‹œ λͺ¨λ“  νŽ˜μ΄μ§€λ₯Ό λ‘œλ“œ ν•˜μ§€ μ•Šκ³ , ν•„μš”ν•œ λΆ€λΆ„λ§Œ λ‘œλ“œ)

  3. κ°„λ‹¨ν•œ λΌμš°νŒ…μ„ μ œκ³΅ν•œλ‹€. (pages)

  4. HMR(Hot Module Replacement)을 μ§€μ›ν•˜λŠ” WebPack 기반의 개발 ν™˜κ²½μ„ μ œκ³΅ν•œλ‹€.

Next.js μ‹œμž‘

mkdir hello-next cd hello-next

npm init -y

npm install react react-dom next

mkdir pages

npm run dev

pages/index.js 파일 생성

const Index = () => {

return (

<div> <p>Hello Next.js</p> </div>

)}

export default Index

Clone this wiki locally