Installation
Getting started with React Strict DOM. The following guide will explain which packages to install.
How to install
To install React Strict DOM, run the following command in a React project:
npm install react-strict-dom
Web
For web support, please make sure the following peer dependencies are installed:
npm install react react-dom
Native
For native support, please make sure the following peer dependencies are installed.
npm install react react-native
How to use AI to code with React Strict DOM
When using AI assistants like Claude or ChatGPT to help write React Strict DOM code, provide our LLM guide as context for more accurate results.
How to use:
- Copy the contents of the llm.txt file.
- Provide it as context in your conversation with the AI assistant.
- Then ask your coding questions.
This guide contains condensed, AI-optimized documentation covering React Strict DOM's syntax, styling system, common patterns, and key differences from React DOM. Providing this context helps AI assistants generate code using the React Strict DOM APIs and avoids common mistakes.