Skip to content
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

this.h3 'Foo' instead of verbose React.DOM.h3 null, 'Foo' #170

Closed
steida opened this issue Jul 6, 2013 · 5 comments
Closed

this.h3 'Foo' instead of verbose React.DOM.h3 null, 'Foo' #170

steida opened this issue Jul 6, 2013 · 5 comments

Comments

@steida
Copy link

steida commented Jul 6, 2013

If all React.DOM methods were created/aliased on React Component instance, we could use such beautiful concise CoffeeScript syntax: https://gist.github.com/steida/5940661

@jordwalke
Copy link
Contributor

It would be nice if there were a convenient way to "import" a set of variables into scope.

@vjeux
Copy link
Contributor

vjeux commented Jul 6, 2013

You can do
{h1, li, div} = React.DOM

but you've got to enumerate all the tags you are going to use

Christopher "vjeux" Chedeau
Facebook Engineer
http://blog.vjeux.com/

On Sat, Jul 6, 2013 at 11:48 AM, Jordan W notifications@github.com wrote:

It would be nice if there were a convenient way to "import" a set of
variables into scope.


Reply to this email directly or view it on GitHubhttps://github.com//issues/170#issuecomment-20558913
.

@petehunt
Copy link
Contributor

petehunt commented Jul 6, 2013

There's something pretty similar here: http://jsfiddle.net/hdrV3/1/
And there was a bunch of discussion here which you may find interesting: #47

@steida
Copy link
Author

steida commented Jul 7, 2013

@zpao
Copy link
Member

zpao commented Oct 28, 2013

I don't think we're going to do this.

@zpao zpao closed this as completed Oct 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants