qhxin
V2EX  ›  PHP

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

  •  
  •   qhxin · Jun 22, 2017 · 1877 views
    This topic created in 3251 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
        1
    ywisax  
       Jun 25, 2017
    webstorm 没这个问题。。。还是老实换吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5666 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 70ms · UTC 03:51 · PVG 11:51 · LAX 20:51 · JFK 23:51
    ♥ Do have faith in what you're doing.