A better pattern would be yo expose a `closeAllMenus()` action hooked to some global state that all menus are listening to, and use that in your block.
A better pattern would be yo expose a `closeAllMenus()` action hooked to some global state that all menus are listening to, and use that in your block.
One of the questions that seems to repeat itself over and over again is, if WordPress is already using React in the admin, why can't React be used on the frontend?
I have tried to explain it as best as I could in this article: developer.wordpress.org/block-editor...
One of the questions that seems to repeat itself over and over again is, if WordPress is already using React in the admin, why can't React be used on the frontend?
I have tried to explain it as best as I could in this article: developer.wordpress.org/block-editor...