pure-react-types
v0.1.4
Published
@types/react without any react-dom types included
Readme
pure-react-types
@types/react without any react-dom types included (react v19, backwards compatability before hooks questionable)
React.JSX.IntrinsicElements are empty so this package is perfect for non-DOM react shenanigans.
Also this is not a really good types package if you need experimental or canary features. Also you need typescript 5
Installation
npm i --save-dev pure-react-types
pnpm add -D pure-react-typesUpdate your tsconfig.json so it can find the types:
{
"compilerOptions": {
"types": ["pure-react-types"],
},
}Last patched @types/react version: 19.1.2
