I am trying to have a behaviour similar to the redux\' using contextApi and hooks, but I\'m having some trouble with typescript.
contextApi
I want to provide both the s