Reactjs – Unable to create an Array of users in Typescript with Context
I'm trying to set an Array of objects (users) as state in my Next app using context. Here is the code: import React, { Dispatch, SetStateAction, createContext, useState, useEffect, } from "react"; type Props = { children: JSX.Element; }; type…