Nice article. Thanks for this.
I have seen that even though the value that you passed to the context is not a primitive value, you did not use useMemo.
Can you tell me what will be the implications of (not) using useMemo here and when do you suggest that we should use it.
Which rerenders will this useMemo reduces when used along with useContext?
Matt Heslington
Hi, thanks for taking the time to write this. It looks to be a super-efficient way of implementing auth to a React app.
Do you have a working example of the code, please?
Cheers!