{"library":"paperclip-compiler-base-jsx","title":"Paperclip Compiler Base JSX","description":"A JSX-specific base compiler for Paperclip, version 18.3.8. Paperclip is a design-to-code tool that compiles HTML templates into various frameworks. This package provides the core JSX compilation logic, intended for use within the Paperclip ecosystem. It is likely used internally by other Paperclip compilers and may not be directly consumed. Release cadence is tied to the Paperclip monorepo. Key differentiator: focuses on JSX output, handling HTML-to-JSX transformations.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install paperclip-compiler-base-jsx"],"cli":null},"imports":["import { compileJSX } from 'paperclip-compiler-base-jsx';","import { createJSXCompiler } from 'paperclip-compiler-base-jsx';","import { JSXCompilerOptions } from 'paperclip-compiler-base-jsx';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { compileJSX } from 'paperclip-compiler-base-jsx';\n\nconst html = '<div class=\"container\"><span>Hello</span></div>';\nconst result = compileJSX(html, { \n  module: 'esm',\n  jsxPragma: 'React.createElement'\n});\nconsole.log(result.code);\n// Expected output: \"React.createElement('div', { className: 'container' }, React.createElement('span', null, 'Hello'))\"","lang":"typescript","description":"Shows basic usage of compileJSX to transform HTML to JSX code.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}