Skip to content
Advertisement

Tag: create-react-app

React fragment shorthand failing to compile

The project in question is using React-16.2.0 which has the capability to use Fragments and the Fragment shorthand. https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html While the full-length syntax works fine… The shorthand fails to compile and I am at a loss as to why this is. Fore example… Which fails to compile as follows… Is there something here I am missing about the Fragment shorthand

Advertisement