javascript - I installed React, then I get a typo when I save it
问题描述
I have provided all the necessary institutions for React. Afterwards, when I ctrl s the codes, the js codes try to resemble the js syntax. I am getting the below issue? What can I do?
import logo from './logo.svg';
import './App.css';
function App() {
return ( <
div className = "App" >
<
header className = "App-header" >
<
img src = { logo }
className = "App-logo"
alt = "logo" / >
<
p >
Edit < code > src / App.js < /code> and save to reload. <
/p> <
a className = "App-link"
href = "https://reactjs.org"
target = "_blank"
rel = "noopener noreferrer" >
Learn React <
/a> <
/header> <
/div>
);
}
export default App;
解决方案
推荐阅读
- c++ - C++ 这段代码是否修改了指向 this 的任何数据指针,还是只返回它?
- java - MongoRepository 具有不同@Query 的相同方法
- kubernetes - 带有 clouddns 的 GKE 上的 cert-mananger 配置
- python - 美丽的汤在抓取 html 时遗漏了文本
- c++ - 有没有办法使用 strcpy 将字符串数组复制到另一个字符串或不同的数组中?
- php - 如何将记录的 id 作为 GET 变量传递给编辑链接按钮中的模式?
- c# - C#从函数返回跳转语句
- c - 用数组打印 Pi - 小数点
- matlab - 修改 MATLAB 天线方向图图例
- r - 如何使用 mutate 和 if else 语句在 r 中添加另一列?