Create-react-app: Support for Fragment Syntax

Created on 28 May 2018  路  10Comments  路  Source: facebook/create-react-app

https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html#create-react-app

Experimental support for fragment syntax will be added to Create React App within the next few days. A stable release may take a bit longer as we await adoption by upstream projects.

6 months ago 馃槩 can we have this added to the babel-config 馃檹

Most helpful comment

yeah im doing that. just figured it should be here already since the article was from november and it say within the next few days

All 10 comments

react-scripts 2.0 uses babel 7. Babel 7 is currently in beta and we are waiting for it to be officially released.

In the mean time you can use .

yeah im doing that. just figured it should be here already since the article was from november and it say within the next few days

Feel free to send a PR to edit the blog post. It was added pretty soon but 2.x will stay in beta for at least as long as Babel 7 itself is in beta.

but babel will stop its beta when gulp 4 leaves beta 馃槃

(just joking) but also a bit serious, in this current version we are using beta features from babel 7 isn't it? why not add this as well 馃

https://github.com/facebook/create-react-app/blob/next/packages/babel-preset-react-app/package.json#L15-L27

That is on the next branch which does support said features. 馃槃
See master for the release[s] tagged latest.

Can someone clarify? Is this available in the @next branch?

yes, i think so. @affanshahid

Why it was closed, since still not supporting?

@ReactGirl it is supported, but the version that is supporting it is still in beta.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Evan-GK picture Evan-GK  路  3Comments

dualcnhq picture dualcnhq  路  3Comments

Aranir picture Aranir  路  3Comments

alleroux picture alleroux  路  3Comments

adrice727 picture adrice727  路  3Comments