Problems and solutions of using jsx syntax in React-vscode

Problems and solutions of using jsx syntax in React-vscode

Problem Description

After installing the plugin ES7 React/Redux/GraphQL/React-Native snippets is still not fully supported

insert image description here

So I referred to the blog and came up with my solution

Workaround

Open settings and search includeLanguages

insert image description here

The search results are as follows (this wxml is the WeChat wxml I set up before as HTML to support emmet syntax)
Click to add itemjavascript :javascriptreact

insert image description here

Just fill in this item, and you will find that he wrote "javascript": "javascriptreact" on it, which is similar to the blog I referenced

insert image description here

That's it!

The above is the detailed content of the problems and solutions of using jsx syntax in React-vscode. For more information about React-vscode jsx syntax, please pay attention to other related articles on 123WORDPRESS.COM!

You may also be interested in:
  • Detailed explanation of incompatible changes in rendering functions in Vue3
  • Detailed explanation of the use of Vue rendering function render
  • Detailed explanation of Vue rendering function
  • How to use jsx syntax correctly in vue
  • Example of using JSX to build component Parser development
  • How to use JSX to implement Carousel components (front-end componentization)
  • Specific use of Vue component jsx syntax
  • Vue jsx usage guide and how to use jsx syntax in vue.js
  • Detailed explanation of how Vue supports JSX syntax
  • Rendering Function & JSX Details

<<:  Mysql view the maximum number of connections and modify the maximum number of connections

>>:  How to install the graphical interface in Linux

Recommend

Use Docker Compose to quickly deploy ELK (tested and effective)

Table of contents 1. Overview 1.1 Definition 1.2 ...

Commonly used English fonts for web page creation

Arial Arial is a sans-serif TrueType font distribu...

MySQL 8.0.14 installation and configuration method graphic tutorial

This article records the installation and configu...

Docker implements re-tagging and deleting the image of the original tag

The docker image id is unique and can physically ...

JS implements simple addition and subtraction of shopping cart effects

This article example shares the specific code of ...

MySQL 5.7.20 installation and configuration method graphic tutorial (win10)

This article shares the installation and configur...

Detailed explanation of the use of CSS pointer-events attribute

In front-end development, we are in direct contac...

js to achieve image fade-in and fade-out effect

This article shares the specific code of js to ac...

Several ways to implement "text overflow truncation and omission" with pure CSS

In our daily development work, text overflow, tru...

How to use JS to parse the excel content in the clipboard

Table of contents Preface 1. Paste Events and Cli...

Detailed explanation of using top command to analyze Linux system performance

Introduction to Linux top command The top command...