StrictMode
Check out the official React docs!
For more detailed information about React concepts and APIs, please refer to the official documentation for StrictMode.
StrictMode
is a tool for highlighting potential problems in your React application during development. It does not render any visible UI, but activates additional checks and warnings for its descendants.
StrictMode helps you find unsafe lifecycle methods, legacy API usage, and other issues early in development. It does not affect production builds.
[<ReactComponent(true)>]
let StrictModeDemo() =
React.StrictMode [
// ... children
]
This is rendered inside React.StrictMode
StrictMode helps highlight potential problems in your application during development.
Show code
module Example.StrictMode
open Feliz
[<ReactComponent(true)>]
let StrictModeDemo() =
React.StrictMode [
Html.h3 [ prop.text "This is rendered inside React.StrictMode" ]
Html.p [ prop.text "StrictMode helps highlight potential problems in your application during development." ]
]