How to use the useContext() for Advanced API?
zning opened this issue · comments
zning commented
I saw there's a request and updates for the ModernMosaicContext for this. But could you provide some instructions how to use the useContext() Hooks instead of Consumer method please? Thanks
Kevin Verdieck commented
Hi @zning, using https://reactjs.org/docs/hooks-reference.html#usecontext with MosaicContext
should do what you want.