代码之家  ›  专栏  ›  技术社区  ›  Amir

VSCode IDE在编写react代码时出现问题

  •  1
  • Amir  · 技术社区  · 7 年前

    我刚开始在react in VScode中编写一些代码,但是在创建默认项目之后 create-react-project “基于 Mosh tutorial 你介意告诉我为什么我会收到这些警告吗?我对我的代码中什么是对的什么是错的感到困惑。 enter image description here

    1 回复  |  直到 7 年前
        1
  •  1
  •   laminatefish    7 年前

    …是一个ESLint规则,可以找到它的详细信息 here

    1. 禁用ESLint(可能通过一些VS代码扩展)或其设置
    2. 继续使用ESLint作为编码标准,并且只使用单引号。