@gera2ld/jsx-dom

Use JSX for HTML elements.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Oct 26, 2020May 30, 2018Minified + gzip package size for @gera2ld/jsx-dom in KB

Readme

@gera2ld/jsx-dom

NPM License Downloads

Use JSX for HTML elements.

Usage

$ yarn add @gera2ld/jsx-dom
# ESLint
$ yarn add eslint-plugin-react -D
import React from '@gera2ld/jsx-dom';

document.body.appendChild(<div>hello</div>);
// .babelrc
{
  // ...
  "plugins": [
    "@babel/plugin-transform-react-jsx",
  ],
}
// .eslintrc.js
module.exports = {
  plugins: [
    // ...
    'react',
  ],
  rules: {
    // ...
    'react/jsx-uses-react': 'error',
  },
};

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.