How to create and expose React Context providers and consumers