Panoramica della documentazione di React
Questa sezione fornisce una documentazione di riferimento dettagliata per lavorare con React. Per una introduzione a React, visita la sezione Learn.
La documentazione di riferimento su React è suddivisa in sottosezioni funzionali:
React
Funzionalità React programmatiche:
- Hooks - Utilizza diverse funzionalità di React dai tuoi componenti.
 - Componenti - Componenti integrati che puoi utilizzare nel tuo JSX.
 - API - API utili per la definizione dei componenti.
 - Direttive - Fornisce istruzioni ai bundler compatibili con React Server Components.
 
React DOM
React-dom contiene funzionalità supportate solo per le applicazioni web (che vengono eseguite nell’ambiente DOM del browser). Questa sezione è suddivisa come segue:
- Hooks - Hooks per le applicazioni web che vengono eseguite nell’ambiente DOM del browser.
 - Componenti - React supporta tutti i componenti HTML e SVG integrati nel browser.
 - API - Il pacchetto 
react-domcontiene metodi supportati solo nelle applicazioni web. - API del client - Le API 
react-dom/clientti consentono di renderizzare i componenti React sul client (nel browser). - API del server - Le API 
react-dom/serverti consentono di renderizzare i componenti React in HTML sul server. 
Rules of React
React has idioms — or rules — for how to express patterns in a way that is easy to understand and yields high-quality applications:
- Components and Hooks must be pure – Purity makes your code easier to understand, debug, and allows React to automatically optimize your components and hooks correctly.
 - React calls Components and Hooks – React is responsible for rendering components and hooks when necessary to optimize the user experience.
 - Rules of Hooks – Hooks are defined using JavaScript functions, but they represent a special type of reusable UI logic with restrictions on where they can be called.
 
Legacy APIs
- API Legacy - Esportate dal pacchetto 
react, ma non consigliate per l’uso in codice appena scritto.