html-dom-attributes-to-react-props

1.0.4 • Public • Published

HTML DOM Attributes to React Props

This package converts HTML DOM Attributes to React Props using the mapping between HTML attributes and React props used in the React DOM library. This means changing the name from font-size to fontSize, and actually make boolean values true booleans for the attributes that support it. It will let all unknown attributes pass without modification.

Readme

Keywords

none

Package Sidebar

Install

npm i html-dom-attributes-to-react-props

Weekly Downloads

128

Version

1.0.4

License

MIT

Unpacked Size

5.16 kB

Total Files

5

Last publish

Collaborators

  • alfredringstad