right-click "format file" in the code, and the syntax of jsx is all messed up.
I don"t know what plug-ins or settings can solve.
right-click "format file" in the code, and the syntax of jsx is all messed up.
I don"t know what plug-ins or settings can solve.
choose JavascriptReact or TypescriptReact in the lower right corner of the language, and then format jsx will not be messy.
"files.associations": {
"*.js": "javascriptreact"
},
play with it
Prettier-Code formatter
ext install prettier-vscode
it's worth having!
Previous: Cannot install gdbm for python3.5?
Next: Released a npm package npm official website can find the local installation can not
I am a novice. Before, I used react technology stack to develop projects in the company, but I was only responsible for local development, using a local server, and then git push the code. After that, the supervisor was doing all the work. Now that I hav...
vscode uses the shortcut key Ctrl+ to comment a line of jsx code. As shown in the figure below, it will cause an error if it is annotated like this. It is correct to comment as . Can this be configured? ...
in react native, I use the uri returned in react native image picker to upload the image to Qiniuyun. The url opening of the image returned by the downloaded api on Qiniuyun is a text file upload code: ` upload const upload = async (file, token) = >...
problem description I want to use a long list, but I can t render the data. I ve got the data I need. the environmental background of the problems and what methods you have tried I read the code example on the official website of ant design mob...
problem description I use axios to create an instance, and request configuration transformResponse to get data that begins with Access Deny! No Actions! what is the reason for this? related codes Please paste the code text below (do not ...
problem description I wrote getData.js to request data. When I use it in export default , how to write match information in the argument? related codes Please paste the code text below (do not replace the code with pictures) class PlistI...
problem description I render the page with a long list of antd-mobile , and use axios to send a request. Sometimes some of the data is not available, and sometimes there is no problem. Why? related codes Please paste the code text below (do...
problem description write the following code in index.js so how to describe the interface type in JsDoc or is there any other way to solve the problem suggested by this code ...