Recently, I upgrade version of react/react-dom in my project from 16.3.2 to 16.8.6 to be able to use hooks and, with some minor changes in my code, everything went well.
But we are using typescript, and when I try to use React.useState(), typescript compiler complains and is unable to compile : Property 'useState' does not exist on type 'typeof React'.
I think the problem is that @types/react and @types/react-dom packages were not up-to-date. So I tried to upgrade them from 16.3.2 to 16.8.5 (16.8.6 doesn't exist for @types/react-dom).
Then I was able to use usestate() but everything else was broken, typescript compiler was complaining about almost every component...
My question is: what should I do ? What is the best approach to upgrade those packages ? Do versions need to be the same ?
Thanks.
