React and Toggling aMenu

I am attempting to Toggle a IonMenu component programatically, but the IonMenuController does not appear to exist in the React framework, and there doesn’t appear to be props to the IonMenu to open it.

Whats the best practice in this case?

(Specifically I’m attempting to toggle it from a click on a IonTabButton.)

Thanks.

In the end, I’ve had to use the DOM apis to make this work.

const openMainMenu = () => {
  const mainMenu =  <HTMLDivElement><unknown>document.querySelector("#main-menu");
  if (mainMenu) mainMenu.open();
}

This feels incorrect, so I’d still welcome input.