Vscode comment jsx error

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?

clipboard.png


remove the curly braces.

your side has to be understood as pure js, not jsx!

This is how it should be annotated in

jsx. This is just a manual comment for a special scene.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf4df9-535cb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf4df9-535cb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?