react-property is a utility package that exposes the internal HTML and SVG DOM property configurations used by React. It provides programmatic access to React's understanding of DOM properties, including their type (e.g., boolean, numeric, string), and a mapping of non-standard attribute names to their standard counterparts (e.g., `accept-charset` to `acceptCharset`). The package is currently stable at version 2.0.2 and appears to have an infrequent release cadence, primarily updating to align with significant changes in React's DOM handling, as seen with its v2.0.0 release. Its key differentiator is providing a direct mirror of React's internal DOM property logic, which can be useful for tools, linting, or custom renderers that need to replicate React's attribute normalization and property handling without relying on the full React DOM package.
npm install react-propertyVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing the default export and using its `getPropertyInfo`, `isCustomAttribute`, and `possibleStandardNames` utilities, along with accessing its property type constants.
Ensure your project's React version is 17 or newer if you are using react-property@2.x. If you require compatibility with React 15/16, you should remain on react-property@1.x.
Upgrade to react-property@2.0.2 or higher for first-party TypeScript support. If sticking to older versions, consider installing `@types/react-property` if available, or create a custom declaration file.
Periodically check for updates to `react-property` when upgrading your React version. Consider the stability implications of relying on utilities that expose internal framework mechanisms.
Import the default export and access `getPropertyInfo` from it: `import reactProperty from 'react-property'; const { getPropertyInfo } = reactProperty;`Upgrade to `react-property@2.0.2` or newer to get official TypeScript types. If an upgrade is not feasible, install community types like `@types/react-property` (if they exist for your version) or create a custom `d.ts` declaration file to assert the module's structure.
No dependency data recorded yet.