useState is a React Hook used to store and update data in a component. When the state changes, React updates the UI. 1. Basic syntax const [ value , setValue ] = useState ( initialValue ); value β€” current state value. setValue β€” function to update the state. useState(initialValue) β€” sets the initial value. 2. Example: Counter import { useState } from " react " ; export default function App () { const [ count ...