jQueReact is a pre-release jQuery-to-React transpiler that converts imperative jQuery code into declarative React/JSX components at build time. Version 0.0.1 is an early placeholder. It uses a Rust-based parser compiled to WebAssembly for fast AST processing, targeting Node.js and browser environments. Unlike alternatives like jquerty or manual migration, jQueReact aims for fully automatic transformation without runtime jQuery dependencies. Key differentiators include WASM performance, build-time transformation, and support for common jQuery methods (css, on, attr, append). Note that this is a very early release with limited feature completeness; complex patterns like animations and AJAX require manual refactoring.
npm install jquereactNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes WASM, transpiles a simple jQuery chain to a React component, and logs the result.
Pin to exact version and test upgrades thoroughly.
Always call init() and await it before using transpile.
Consider alternatives like jscodeshift for jQuery migration.
Manually refactor such code before or after transpilation.
Replace plugins with React equivalents before transpilation.
Add 'await init();' before using transpile function.
Use default import for init: 'import init from "jquereact"' and named import for transpile: 'import { transpile_jquery_to_react } from "jquereact"'.Rebuild WASM with 'wasm-pack build --target bundler' and ensure Node.js >= 16 or modern browser.
Simplify the jQuery code to basic DOM manipulation (css, text, on, etc.) or manually refactor.
No dependency data recorded yet.