Typing for Context API where Context defaultValue is null
#97
Labels
wontfix
This will not be worked on
null
#97
Hi there
There are times where we want the defaultValue for React's Context API to be
null
.I've found this solution.
TLDR:
Now we can pass
null
in as a default value as ourReact.createContext
argument.The text was updated successfully, but these errors were encountered: