1.0.6 • Published 4 years ago

react-domproperty v1.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Build Status Code Coverage version MIT License PRs Welcome

Why?

Usage

const convert = require('react-domproperty');
// nomral html attribute
convert('autoplay'); // => autoPlay
convert('crossOrigin'); // => crossOrigin
// SVG attribute
convert('xml:base'); // => xmlBase
// event handler
convert('onclick'); // => onClick
// bypass custom attributes
convert('custom-x'); // => custom-x

Supported Attributes

See attributes.

Other

This project uses ts-rollup-boilerplate as a starter.

LICENSE

MIT