‘useState’ is not defined no-undef React July 21, 2023 by Tarik You need to import “useState”: import React, { useEffect, useState } from "react";