# cjsxify **Repository Path**: mirrors_cypress-io/cjsxify ## Basic Information - **Project Name**: cjsxify - **Description**: Browserify transform for CJSX (CoffeeScript equivalent of JSX used in React library by Facebook) - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README cjsxify ==== [Browserify](http://browserify.org/) transform for CJSX (CoffeeScript equivalent of JSX used in [React](http://facebook.github.io/react/) library by Facebook). ### Usage ```coffeescript # @cjsx React.DOM React = require('react') Hello = React.createClass render: ->
Hello, {@props.name}!
React.renderComponent(, document.getElementById('hello')) ``` Save the snippet above as `main.coffee` and then produce a bundle with the following command: % browserify -t cjsxify main.coffee -o bundle.js `cjsxify` is activated for files with either `.cjsx` extension or `# @cjsx React.DOM` pragma as a first line for any `.coffee` file. ### Installation ```bash npm install cjsxify ``` ### Thanks This package is inspired by [coffeeify](https://github.com/jnordberg/coffeeify)/[reactify](https://github.com/andreypopp/reactify) and use [coffee-react-transform](https://github.com/jsdf/coffee-react-transform) to handle `cjsx` transformation to `CoffeeScript`. Thanks to the authors for their great work.