React - useState is not defined issue

0 votes
197 views
added Dec 17, 2021 in React by lcjr Lieutenant (12,010 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.
...