Open a Modal Dialog in React with the Invoker Commands API

Use command and commandfor to open a native dialog in React without useState or dialog libraries.