Package Exports
- react-property
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-property) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-property
HTML and SVG DOM property configs used by React.
Install
# with npm
$ npm install react-property --save
# with yarn
$ yarn add react-property
Usage
Import main module:
// CommonJS
const reactProperty = require('react-property');
// ES Modules
import reactProperty from 'react-property';
Main module exports:
{
html: {
autofocus: {
attributeName: 'autofocus',
propertyName: 'autoFocus',
mustUseProperty: false,
hasBooleanValue: true,
hasNumericValue: false,
hasPositiveNumericValue: false,
hasOverloadedBooleanValue: false
},
// ...
},
svg: {
// ...
},
properties: {
// ...
},
isCustomAttribute: [Function: bound test]
}
You may also import what you need:
const HTMLDOMPropertyConfig = require('react-property/lib/HTMLDOMPropertyConfig');
const injection = require('react-property/lib/injection');
Layout
.
├── index.js
└── lib
├── HTMLDOMPropertyConfig.json
├── SVGDOMPropertyConfig.json
└── injection.json
License
MIT. See license from original project.