Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

setState typescript type

//Change string for the desired type
React.Dispatch<React.SetStateAction<string>>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #setState #typescript #type
ADD COMMENT
Topic
Name
4+7 =