heact
v3.0.0
Published
Extension for React createElement
Downloads
5
Readme
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.