1.7.1 • Published 9 years ago
snabbdom-pragma-quickfix v1.7.1
snabbdom-pragma
Well tested NotReact.createElement pragma although for snabbdom !
In brief
The main goal of snabbdom-pragma is to handle the same api as React.createElement
to allow snabbdom users
to take all benefits from transpiler which are looking for React pragma compatibilities.
Getting started
To use snabbdom-pragma you need to download it thanks to your favorite JS package manager.
yarn add snabbdom-pragmanpm install --save snabbdom-pragmaThen replace your transpiler pragma by Snabbdom.createElement.
Dont miss to import the createElement function into your code.
import Snabbdom from 'snabbdom-pragma'Compatibilities
Bublé
snabbdom-pragma is fully tested for Bublé
buble.transform(input, {
jsx: 'Snabbdom.createElement'
})Babel
snabbdom-pragma is fully tested for Babel with the
transform-react-jsx plugin enabled
babel.transform(input, {
plugins: ["transform-react-jsx", {
pragma: 'Snabbdom.createElement'
}]
});Traceur
snabbdom-pragma is fully tested for Traceur
traceur.compile(input, {
jsx: 'Snabbdom.createElement'
});Misc
snabbdom-pragmafollows the Compatible Versioning: major.minor only convention.- Release notes are Keep a Changelog compliants.
1.7.1
9 years ago