I came across a scenario wherein i was making an app entirely using React hooks.
I had to use certain NPM libraries in the app which were not hooks compatible. To avoid prop drilling, i plan to use useContext. Since some of my components which were using non-hooks compatible npm libraries had to be class based.
Using React-context api along with useContext was one of the sensible recourse.
Following is a very basic example for any-one trying to use useContext as Context consumer along with Context Provider.