ReasonJun

error : This expression is not callable. Not all constituents of type 'string | Dispatch<SetStateAction<string>>' are callable. Type 'string' has no call signatures. 본문

Frontend/Typescript

error : This expression is not callable. Not all constituents of type 'string | Dispatch<SetStateAction<string>>' are callable. Type 'string' has no call signatures.

ReasonJun 2023. 8. 14. 16:04
728x90

 

reference :

https://kentcdodds.com/blog/wrapping-react-use-state-with-type-script

 

Wrapping React.useState with TypeScript

Stay up to date Subscribe to the newsletter to stay up to date with articles, courses and much more! Learn more Stay up to date Subscribe to the newsletter to stay up to date with articles, courses and much more! Learn more All rights reserved © Kent C. D

kentcdodds.com

 

728x90
Comments