Deprecated tool that provided JSX-like syntax for building React components with CoffeeScript, using the CJSX format. The 5.0.1 stable release is the last; the project has been abandoned. It wraps coffee-react-transform and coffee-script to compile CJSX to JavaScript, and includes a cjsx executable that functions as a coffee replacement. Key differentiator: allowed React JSX syntax within CoffeeScript files. Now superseded by cjsx-codemod for migration. No longer maintained or recommended for new projects.
npm install coffee-reactNo compatibility data collected yet for this library.
Installs coffee-react globally, compiles a CJSX file to JavaScript using the cjsx command, then outputs the resulting JS.
Migrate codebase using cjsx-codemod (https://github.com/jsdf/cjsx-codemod) and consider moving to modern alternatives like Babel with JSX.
Avoid writing new CJSX code; use standard JSX with JavaScript or TypeScript instead.
Pin React to 0.13.x - 0.15.x, or move away from coffee-react.
Ensure both coffee-react and coffee-react-transform are installed: npm install coffee-react coffee-react-transform
Install globally: npm install -g coffee-react@5.0.1, or use npx coffee-react
Review CJSX syntax rules; ensure elements are properly closed and attributes use CoffeeScript expressions.