https://nextjs.org/docs/app/api-reference/config/next-config-js/reactStrictMode
Good to know
: Since Next.js 13.5.1, Strict Mode is true by default with app router, so the above configuration is only necessary for pages. You can still disable Strict Mode by setting reactStrictMode: false.
์ถ์ฒ | https://nextjs.org/docs/app/api-reference/config/next-config-js/reactStrictMode
Next.js์์๋ next.config.js์ reactStrictMode๋ฅผ ๋ฐ๋ก ์ค์ (true)ํด์ฃผ์ง ์์๋ default๋ก true๋ก ์ค์ ๋ฉ๋๋ค.
next.config.js์ ์ด๋ค strictMode์ ๋ํ ์ค์ ๋ ํ์ง ์์์์๋ ๋ถ๊ตฌํ๊ณ ๊ณ์ ๋๋๋ง์ด ๋ ๋ฒ์ด๋ ๋ผ์ reactStrictMode: false๋ฅผ ์ค์ ํด์ฃผ์๋๋ ํ๋ฒ๋ง ์คํ๋์์ต๋๋ค.
(๋ค๋ฅธ ์ด์ ๊ฐ ์๋ ์ค ์๊ณ ์ํ๋ง ๋ซ์ด์ง๊ฒ ์ณ๋ค๋ดค๋ ์ค์ ์ ๋ ๋ฐ์ฑ..)
Next.js ํ์ Strict Mode๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ ๊ถ์ฅํ์ง๋ง <React.StrictMode>๋ฅผ ํตํด page by page๋ก ์ ์ฉํ ์ ์๋ค๊ณ ๋ ์ค๋ช ํ๊ณ ์์ต๋๋ค.
'FE > Next.js' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Next.js] page router - API Routes (0) | 2025.05.03 |
---|---|
[Next.js] page router - ํ๋ฆฌํ์นญ (0) | 2025.05.03 |
[Next.js] Page Router, ์ค์ , ๋ค๋น๊ฒ์ดํ (1) | 2025.05.02 |
[Next.js] Next.js? (1) | 2025.05.01 |
[Next.js] ํ๋ก์ ํธ ์์ฑ (0) | 2024.06.10 |