heact

3.0.0 • Public • Published

heact

Wrapper for React.createElement.

h('.my-class-name', {
    someProp: 100
}, 'content');
// is the same as
React.createElement('div', {
    className: 'my-class-name',
    someProp: 100
}, 'content');

Using namespaces:

import H from 'heact';
const h = H('.namespace');
h('.my-class-name');

For further details look at tests.

Readme

Keywords

none

Package Sidebar

Install

npm i heact

Weekly Downloads

1

Version

3.0.0

License

MIT

Last publish

Collaborators

  • iofjuupasli