pure-react-types
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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-types

Update your tsconfig.json so it can find the types:

{
  "compilerOptions": {
    "types": ["pure-react-types"],
  },
}

Last patched @types/react version: 19.1.2

/pure-react-types/

    Package Sidebar

    Install

    npm i pure-react-types

    Weekly Downloads

    33

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    78.3 kB

    Total Files

    6

    Last publish

    Collaborators

    • alan404