Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Important
Security Advisory: React2Shell & two new vulnerabilities
Find out more

reactStrictMode

Last updated April 15, 2025

Good to know: Since Next.js 13.5.1, Strict Mode istrue by default withapp router, so the above configuration is only necessary forpages. You can still disable Strict Mode by settingreactStrictMode: false.

Suggested: We strongly suggest you enable Strict Mode in your Next.js application to better prepare your application for the future of React.

React'sStrict Mode is a development mode only feature for highlighting potential problems in an application. It helps to identify unsafe lifecycles, legacy API usage, and a number of other features.

The Next.js runtime is Strict Mode-compliant. To opt-in to Strict Mode, configure the following option in yournext.config.js:

next.config.js
module.exports= {  reactStrictMode:true,}

If you or your team are not ready to use Strict Mode in your entire application, that's OK! You can incrementally migrate on a page-by-page basis using<React.StrictMode>.

Was this helpful?

supported.

[8]ページ先頭

©2009-2025 Movatter.jp