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

React - useState is not defined issue

0 votes
9 views
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.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...