React 16.2 Fragments Unexpected token


#1

I’m getting a “Unexpected token” error when using React 16.2’s new fragment’s syntax
<> </>.

I’m not sure if this is an issue with Meteor React Packages or what, but it’s working fine with the same versions of React using CRA.


#2

What about <React.Fragment></React.Fragment>?

I suspect this is related to babel-runtime. The facebook changelog post about 16.2.0 states it requires 7.0.0-beta.31.


#3

I didn’t try React.Fragment, but I’m sure it would work. I figured it was something with the babel setup in meteor react packages.


#4

I read about Fragments today. I’m interested in using them, so if you figure out what happened, please let me know!