React - useState is not defined issue

0 votes
167 views
added Dec 17, 2021 in React by lcjr First Warrant Officer (11,930 points)
// we need to import useState
// e.g 

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

 

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