Actually the purpose of useDogProviderState is to make sure that the consumer of the DogDataProviderContext will be under the DogDataProvider in the React tree in order to consume the value provided from the provider. They would not want something like: const App = () => <Profile /> :D
Actually there's a discussion about this on Twitter: twitter.com/kentcdodds/status/1125...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Actually the purpose of
useDogProviderState
is to make sure that the consumer of theDogDataProviderContext
will be under theDogDataProvider
in the React tree in order to consume the value provided from the provider. They would not want something like:const App = () => <Profile />
:DActually there's a discussion about this on Twitter: twitter.com/kentcdodds/status/1125...