simondegraeve / cjsxify Goto Github PK
View Code? Open in Web Editor NEWBrowserify transform for CJSX (CoffeeScript equivalent of JSX used in React library by Facebook)
License: MIT License
Browserify transform for CJSX (CoffeeScript equivalent of JSX used in React library by Facebook)
License: MIT License
Currently the npm package still points to coffee-react-transform version ~0.2.0
When I follow the steps in usage I end up with a bundle.js just fine, When I wrap a little index.html file around that bundle.js and point my browser to it I get a Uncaught Error: Invariant Violation: _registerComponent(...): Target container is not a DOM element. bundle.js:16017
Am I missing some steps or something ?
I am on osx 10.9.3
coffeescript 1.6.3
First this is a cool module. Our team has been using it for a bit.
I found this today, which could cause some problems. It seems the coffeescript transformer you're using doesn't compile this correctly.
if test?
// do this
compiles to
if (test != null) {
// do this
}
which should instead be
if (typeof test === "undefined" || test === null) {
// do this
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.