nomcopter / react-mosaic

A React tiling window manager

Home Page:https://nomcopter.github.io/react-mosaic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use the useContext() for Advanced API?

zning opened this issue · comments

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

Hi @zning, using https://reactjs.org/docs/hooks-reference.html#usecontext with MosaicContext should do what you want.