Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

React - useState is not defined issue

0 votes
added Dec 17, 2021 in React by lcjr Second Warrant Officer (6,570 points)
// we need to import useState
// e.g 

import React, { useEffect, useState } from 'react';


Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.