a minimal implementation of JSX.IntrinsicElements to get syntax highlighting in your .jsx and .tsx files.
to use this, and banish all the red error lines under your jsx blocks, simply import this file.
and now, with the global declaration done, your IDE should pick up on the JSX.IntrinsicElements definitions.
however, if it doesn't in certain files, add the following line to the top of that file, so that you can explicitly reference your global.d.ts file.
a minimal implementation of
JSX.IntrinsicElementsto get syntax highlighting in your.jsxand.tsxfiles.to use this, and banish all the red error lines under your jsx blocks, simply import this file.
how to get it working:
global.d.tsin the root of your source code. so for instance:/src/global.d.tsis one possibility.JSX.IntrinsicElementsdefinitions. however, if it doesn't in certain files, add the following line to the top of that file, so that you can explicitly reference yourglobal.d.tsfile.Example