react-property
HTML and SVG DOM property configs used by React.
Install
$ npm install react-property --save
$ yarn add react-property
Usage
Import main module:
const reactProperty = require('react-property');
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.js
├── SVGDOMPropertyConfig.js
└── injection.js
License
MIT. See license from original project.