![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
coffee-react
Advanced tools
Provides the csx-coffee
executable, a wrapper for the Coffeescript compiler using coffee-react-transform so you can build React components in Coffeescript with JSX-like markup.
neat-component.csx
# @csx React.DOM
NeatComponent = React.createClass
render: ->
{showTitle, neat} = @props
<div className="neat-component">
{<h1>A Component is I</h1> if showTitle}
Coffeescript really saves a lot of typing...
{<p>is this component neat?<br />{neat}x{times}</p> for times in [1..10]}
</div>
compile it
$ csx-coffee -cb neat-component.csx
neat-component.js
// Generated by CoffeeScript 1.7.1
var NeatComponent;
NeatComponent = React.createClass({
render: function() {
var neat, showTitle, times, _ref;
_ref = this.props, showTitle = _ref.showTitle, neat = _ref.neat;
return React.DOM.div({
"className": "neat-component"
}, (showTitle ? React.DOM.h1(null, "A Component is I") : void 0), "Coffeescript really saves a lot of typing...", (function() {
var _i, _results;
_results = [];
for (times = _i = 1; _i <= 10; times = ++_i) {
_results.push(React.DOM.p(null, "is this component neat?", React.DOM.br(null), neat, "x", times));
}
return _results;
})());
}
});
npm install -g coffee-react
$ csx-coffee -h
Usage: csx-coffee [options] path/to/script.csx -- [args]
If called without options, `csx-coffee` will run your script.
-b, --bare compile without a top-level function wrapper
-c, --compile compile to JavaScript and save as .js files
-e, --eval pass a string from the command line as input
-h, --help display this help message
-j, --join concatenate the source CoffeeScript before compiling
-m, --map generate source map and save as .map files
-n, --nodes print out the parse tree that the parser produces
--nodejs pass options directly to the "node" binary
--no-header suppress the "Generated by" header
-o, --output set the output directory for compiled JavaScript
-p, --print print out the compiled JavaScript
-s, --stdio listen for and compile scripts over stdio
-l, --literate treat stdio as literate style coffee-script
-t, --tokens print out the tokens that the lexer/rewriter produce
-v, --version display the version number
-w, --watch watch scripts for changes and rerun commands
Output compiled JS to a file of the same name:
$ csx-coffee -c my-component.csx
If you just want to transform CSX markup into valid Coffeescript code as part of your existing build process see coffee-react-transform, which is the main parser/transformer package.
FAQs
Coffeescript compiler wrapper adding coffee-react-transform CJSX support
The npm package coffee-react receives a total of 722 weekly downloads. As such, coffee-react popularity was classified as not popular.
We found that coffee-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.