React Context + TypeScript — The Easy Way
…and why the React devs teach you incorrectly
Published in
5 min readNov 19, 2021
The other day I was converting a JavaScript component to TypeScript and I got tripped up in one specific area: React Context.
Now don’t get me wrong, I’ve used TypeScript a million times before, but for some reason Context was not clicking with me. So I went back to the drawing board, looked…