DEV Community

Discussion on: React TypeScript - How To Set Types on Hooks (+cheat sheet)

Collapse
 
abraganu profile image
Abraham Garcia Nunez • Edited

Pretty good stuff :), I will add that you need always set the return type of a function if you are working on strict mode (typescript). Another thing is that you can add read only to the reducers state