Skip to content

Conversation

elicwhite
Copy link
Contributor

…onContainer

This didn't properly handle converting:

var React = require('React'); React.createElement( 'div', null, foo.map(function() {}) ); 

to:

var React = require('React'); <div>{foo.map(function() {})}</div>; 

Now it does! :)

@cpojer
Copy link
Member

cpojer commented Nov 9, 2015

nice!

cpojer added a commit that referenced this pull request Nov 9, 2015
create-element-to-jsx-children: Convert .map calls into a JSXExpressi…
@cpojer cpojer merged commit e5c5dcc into reactjs:master Nov 9, 2015
@elicwhite elicwhite deleted the children-expression branch November 9, 2015 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants