-
Notifications
You must be signed in to change notification settings - Fork 47.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop requiring docblock for JSX transformer #114
Comments
👍 What are you thinking as a substitute? We should cover in-browser transforms as well as something like require.js (with or without in-browser transforms). Have you thought of using the |
Well, we need to consider if we want JSX to be general purpose. As we talk about pulling it into it's own project we need to think about how it'll get used. If we want to keep with this idea that it's generic and you can plug in any "namespace", then we need to keep that working. Right now the transform takes If we didn't have the concern of supporting other targets, then I would just say we'll transform anything that's For the in-browser transform, we talked about doing something like For |
Would the noise be so bad if it didn't have to be first (or specially structured)? /**
* MyComponent
*
* This will render a super awesome component!
*
* @param object
* @returns object
* @jsx React.DOM
*/
var MyComponent = (function(React) {
return React.createClass({ ... });
}(React); Besides that, I've been using |
That long docblock should just work right now actually :) We aren't that strict about the format so long as it's in the first docblock in the file. I haven't tested but if that doesn't work, let me know. And that assumption that anything passed to |
Related to #832. |
I'd say #1551 is kind of related too, if we go that way. |
this change really disturbed my jsx usage for mithril. have to see if the new version will work somehow |
@fyyyyy You can continue to use react-tools 0.11 or make your own custom transformer, like https://github.com/Raynos/mercury-jsx. |
Send the bridge sync event lazily
/** @jsx React.DOM */
is pretty annoying noise. Let's stop requiring it. We can probably keep it simple for now but if we want to make JSX more generic and standalone we might need to do this a bit more carefully.The text was updated successfully, but these errors were encountered: