qhxin
V2EX  ›  PHP

PHPStorm 解析 jsx 文件时会有语法错误提示,怎么解决?

  •  
  •   qhxin · Jun 22, 2017 · 2250 views
    This topic created in 3446 days ago, the information mentioned may be changed or developed.

    已经在 Setting->Languages->JavaScript 里面设置 language level 为了 JSX Harmony。

    但是在 class 的 constructor 里面写 super 会有红色下划线。。。

    class SearchTable extends Component {
        constructor(props) {
            super(props);
    
            this.state = {
                loading: false,
                table: {}
            };
        }
    }
    
    ywisax
    ywisax
    Jun 25, 2017
    1
    webstorm 没这个问题。。。还是老实换吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1060 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 18:30 · PVG 02:30 · LAX 10:30 · JFK 13:30
    ♥ Do have faith in what you're doing.