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.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.
how to get it working:
global.d.ts
in the root of your source code. so for instance:/src/global.d.ts
is one possibility.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 yourglobal.d.ts
file.Example