These docs are old and won’t be updated. Go to react.dev for the new React docs. These new documentation pages teach React with Hooks: Quick Start Tutorial react: Hooks Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. import React, { useState } from 'react'; function Example() { // Declare a new state variable, which we'll call "count
![Introducing Hooks – React](https://cdn-ak-scissors.b.st-hatena.com/image/square/b2c712cc98dd4b4358911c413bad77e850529eee/height=288;version=1;width=512/https%3A%2F%2Flegacy.reactjs.org%2Flogo-og.png)