Skip to content

Instantly share code, notes, and snippets.

@jukkatupamaki
Last active February 19, 2020 10:35
Show Gist options
  • Save jukkatupamaki/bd6293680952b16d6ba33a9bd137043e to your computer and use it in GitHub Desktop.
Save jukkatupamaki/bd6293680952b16d6ba33a9bd137043e to your computer and use it in GitHub Desktop.
Visual Studio Code won't recognize React Fragment syntax

If <></> triggers a syntax error in Visual Studio Code, try the following:

  1. Switch file's language mode to TypeScript React
  2. Switch file's language mode back to JavaScript React

The error should be gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment