Typescript useReducer error solved when adding new state
So, this is just for my reference. previously I had this code. import { useEffect, useReducer } from "react"; import { questionsApi } from "../constants"; import { Loader } from "../components/Loader"; import { Error } from "../components/Error"; imp...
Oct 15, 20234 min read1.1K