Visual studio code changes format (React-JSX)

后端 未结 12 1050
难免孤独
难免孤独 2020-12-12 13:45

I\'ve the following snippet in my index.js

class App extends Component {
    render() {
        return ( 
Welc
12条回答
  •  生来不讨喜
    2020-12-12 13:54

    Alternatively, saving the file with a .jsx extension resolves this in vscode.

    I had the same challenge and I am hoping to discover a better way of handling this issue in vscode.

    I noticed your suggested work-around has to be done each time you open the react file with an extension of .js

提交回复
热议问题