jsxdirect v0.0.12 is a browser-based JSX transpiler that converts JSX strings into virtual DOM render functions at runtime. It supports entire script blocks, inline JSX expressions using `jsx()` or `jsx.compile()`, and template literal delimiters (`${}`) in addition to standard `{}`. Key differentiators include no build step, lightweight runtime (no Babel needed), and compatibility with React, Preact, and Hyperapp. However, it does not support case-sensitive tags (all tags are lowercased), limiting use with React components. Last updated in 2019, it is in maintenance-only status.
npm install jsxdirectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows a complete HTML page that uses jsxdirect to compile a JSX function and render it with React at runtime.
Write component names in ALL CAPS, e.g., 'MYBUTTON' instead of 'MyButton'.
Use e.g., <input value={`hello ${name}`}> or <input value={name}>.Migrate to a maintained JSX transformer; for React, use @babel/standalone.
Ensure jsxdirect.js is loaded before any script with type='text/jsx' and call jsx.compile() after those scripts.
Add <script src='https://unpkg.com/jsxdirect@0.0.12/index.js'></script> to the HTML.
Include React and ReactDOM scripts (or Preact/Hyperapp) before jsxdirect.
No dependency data recorded yet.