I used Vite to create a React app with TypeScript. The app has a custom widget.
I have it all working, but I'm wondering if this information by @ReneRubalcava3 is still valid:
. . . React uses React.createElement for vdom and the JSAPI uses tsx and TypeScript only allows a single jsxFactory to be defined.
. . .
// @ts-nocheck
/** @jsxRuntime classic */
/** @jsx tsx */
. . .You lose type checking on your custom widget
However, React has a new runtime (called "automatic") that doesn't use React.createElement. Details are here.
So the question is: Is the new React "automatic" runtime compatible with the ArcGIS JSAPI, such that we can (1) use the new runtime's features and (2) keep TS type checking, when making apps with custom widgets?