Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

JSX Fragments Not Supported #19

Open
1 task done
lukescott opened this issue Mar 21, 2018 · 4 comments
Open
1 task done

JSX Fragments Not Supported #19

lukescott opened this issue Mar 21, 2018 · 4 comments

Comments

@lukescott
Copy link

lukescott commented Mar 21, 2018

Prerequisites

Description

JSX Fragments are not supported.

Steps to Reproduce

  1. Open a new file and set file type to TypeScriptReact
  2. Input code const fragment = <></>

Expected behavior:

Syntax should be supported and shouldn't show as invalid characters.

What Babel ES6 JavaScript does:

screen shot 2018-03-21 at 1 52 41 pm

Actual behavior:

Syntax is not supported and shows as invalid.

What TypeScriptReact does:

screen shot 2018-03-21 at 1 52 15 pm

Reproduces how often: Always.

Versions

Atom : 1.25.0
Electron: 1.7.11
Chrome : 58.0.3029.110
Node : 7.9.0
apm 1.19.0
npm 3.10.10
node 6.9.5 x64
atom 1.25.0
python 2.7.10
git 2.13.2
os OS X 10.12.2

Additional Information

JSX Fragments are currently supported in TypeScript 2.6. Closed issue microsoft/TypeScript#19094.

@igor10k
Copy link

igor10k commented Jun 28, 2018

looks like the JSX fragment issue was fixed in the original grammar long time ago (microsoft/TypeScript-TmLanguage#535) but the changes were never copied to this repo

@gavinlight

This comment has been minimized.

@bigidea-kz

This comment has been minimized.

@GaddMaster
Copy link

any update ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants