{"library":"static-jsx","title":"static-jsx","type":"library","description":"A simple, dependency-free JSX runtime that renders JSX directly to raw HTML strings for static HTML template engines. Version 1.0.1 is the latest stable release, with no recent updates since 2022. Differentiators: no virtual DOM, no client-side hydration, purely static HTML generation. Supports both classic and automatic JSX transforms, function components, custom elements, and raw HTML escaping. Unlike React or Preact, it is not intended for interactive UIs but for server-side templating akin to Handlebars or Nunjucks, but with JSX syntax. Ships TypeScript types.","language":"javascript","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["npm install static-jsx"],"cli":null},"imports":["import { h } from 'static-jsx'","import { Fragment } from 'static-jsx'","import { RawHtml } from 'static-jsx'","// In tsconfig: \"jsxImportSource\": \"static-jsx\"\n// Or per-file: /** @jsxImportSource static-jsx */"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/ianprime0509/static-jsx","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/static-jsx","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"// Install: npm install static-jsx\n\n/** @jsxImportSource static-jsx */\nimport { RawHtml } from 'static-jsx';\n\nconst bold = (text: string) => <strong>{text}</strong>;\n\nconst page = (\n  <html>\n    <body>\n      <h1>Hello, World!</h1>\n      <p>{bold('This is bold.')}</p>\n      <p>{new RawHtml('<em>Raw HTML</em>')}</p>\n    </body>\n  </html>\n);\n\nconsole.log(page.html);\n/* Output:\n<html><body><h1>Hello, World!</h1><p><strong>This is bold.</strong></p><p><em>Raw HTML</em></p></body></html>\n*/","lang":"typescript","description":"Renders JSX to an HTML string using automatic transform, demonstrating component usage, interpolation, and RawHtml for unescaped HTML.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}