JSX pragma for Snabbdom virtual DOM library. Current stable version is 2.8.0 (released 2018-11-26). Maintained as a stable, feature-complete bridge between JSX transpilers (Babel, TypeScript, Bublé, Traceur) and Snabbdom's vnode creation. Key differentiator: provides a React-like createElement API for Snabbdom, supporting HTML attributes, SVG, custom modules, and components. Alternative to writing raw Snabbdom h() calls. Release cadence is low (last release Nov 2018).
npm install snabbdom-pragmaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows JSX usage with snabbdom-pragma: imports, patch initialization, and rendering a simple component.
Update code that expected raw h() calls; ensure you are using the returned vnode with patch().
Use className for class, not class; use htmlFor for label, not for. Refer to Snabbdom module documentation.
If you were using multiple dashes to denote nested modules, refactor to use the single-dash convention.
Use className in JSX; snabbdom-pragma will convert to class for SVG elements.
Ensure Snabbdom dataset module is included in patch initialization if you use data-* attributes.
Use the module object passed to createElement or JSX pragma instead of per-element module specs.
Run 'npm install snabbdom-pragma' or 'yarn add snabbdom-pragma'.
Ensure the pragma is set exactly to 'Snabbdom.createElement' and import Snabbdom as default or named export createElement.
Update to snabbdom-pragma >=2.0.0 and ensure the pragma matches the export.
Replace class with className in JSX.