Answers for "state class components typescript"

3

setState typescript type

//Change string for the desired type
React.Dispatch<React.SetStateAction<string>>
Posted by: Guest on July-12-2021
0

state typescript

import { Student } from "../../@models/student";

export {};
declare global {
  interface studentState {
    student: Student[];
    loading?: boolean;
    searchData: Student[];
  }
}
Posted by: Guest on March-08-2022

Code answers related to "state class components typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language