我可以在git bash中看到我的react版本,但我有文件和文件夹
这是我第一次使用React,我很难使用它。我尝试关注YouTube上的教程,并阅读有关如何安装React的博客。但是,每当我使用git bash时,总是这样最终。
react --version
bash: react: command not found
但是我可以看到文件和文件夹。而且我认为这与我无法在返回功能上使用HTML标签有关。每当我尝试键入HTML标签时,它总是这样最终出现:
function App() {
return ( <
div >
<
h1 > Yo < /h1> < /
div >
);
}
结果是空的,我无法在返回函数中输入标签。我尝试卸载并安装它,但它不起作用。
This is my first time using react and I'm having a hard time using it. I tried following the tutorials on youtube and also read blogs on how to install react. But whenever I use git bash, it always ended up like this.
react --version
bash: react: command not found
But I can see the files and folders. And I think it's related to how I can't use HTML tags on my return function. Whenever I tried typing HTML tags, it always ended up like this:
function App() {
return ( <
div >
<
h1 > Yo < /h1> < /
div >
);
}
The result was empty and I can't type tags inside of the return function. I tried uninstalling and installing it but it wasn't working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
React Libray没有BASH或CMD命令。
只需检查您的pagekage.json以获取
“版本”
。React Libray don't have bash or cmd commands.
Just Check your pagekage.json for
"version"
.