{"library":"snabbdom-pragma","title":"snabbdom-pragma","type":"library","description":"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).","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install snabbdom-pragma"],"cli":null},"imports":["import Snabbdom from 'snabbdom-pragma'","import { createElement } from 'snabbdom-pragma'","import { h } from 'snabbdom-pragma'"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/Swizz/snabbdom-pragma","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/snabbdom-pragma","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"import Snabbdom from 'snabbdom-pragma'\nimport { init, classModule, propsModule, styleModule, eventListenersModule } from 'snabbdom'\n\nconst patch = init([classModule, propsModule, styleModule, eventListenersModule])\n\nconst vnode = (\n  <div className=\"container\">\n    <h1>Hello, Snabbdom!</h1>\n    <button onClick={() => alert('Clicked!')}>Click me</button>\n  </div>\n)\n\nconst app = document.getElementById('app')\npatch(app, vnode)\n","lang":"typescript","description":"Shows JSX usage with snabbdom-pragma: imports, patch initialization, and rendering a simple component.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}