Codesandbox-client: Support for short JSX fragments

Created on 20 Jul 2018  路  2Comments  路  Source: codesandbox/codesandbox-client

馃寛 Feature


The feature is described here: https://reactjs.org/docs/fragments.html#short-syntax

Basically,

<>
  <Child1 />
  <Child2 />
</>

would be transpiled to

<React.Fragment>
  <Child1 />
  <Child2 />
</React.Fragment>

It is available for Babel 7.x: https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html#support-for-fragment-syntax


Most helpful comment

Thank you @danieldelcore !

Yeah, we now support this 馃帀

All 2 comments

Looks like this is already supported. It works for me 馃
https://codesandbox.io/s/7o3vyq4o40

Thank you @danieldelcore !

Yeah, we now support this 馃帀

Was this page helpful?
0 / 5 - 0 ratings

Related issues

k15a picture k15a  路  3Comments

zocky picture zocky  路  3Comments

waruyama picture waruyama  路  3Comments

Haroenv picture Haroenv  路  3Comments

Haroenv picture Haroenv  路  3Comments