React Typescript useContext
Please who's got a better ideal on how to solve this problem with
React && Typescript
useContext()
?![](https://utfs.io/f/c6a0fa72-a89d-451f-a8ac-6b524610c73d-52bhd2.png)
![](https://utfs.io/f/4db41ce6-bfdc-4b08-a744-3e83fe36bc01-1tkh9.png)
2 Replies
inside of your createContext of null which can only be null
change it to:
Thank you
The error is gone