简体   繁体   English

如何运行反应js。 视觉工作室代码上的代码

[英]how to run react js. code on visual studio code

was formally using sublime text to run react js.正式使用 sublime text 运行 react js。 codes, recently i tried changing my IDE to visual studio code but have being getting errors.代码,最近我尝试将我的 IDE 更改为 Visual Studio 代码,但出现错误。 need to know the procedures for running react codes on visual studio code需要知道在 Visual Studio 代码上运行 React 代码的程序

First u need to understand how it all waorks.首先你需要了解它是如何工作的。 To run your js code u need a browser and notepad.要运行你的 js 代码,你需要一个浏览器和记事本。

U need to create html document and add js script code fe:你需要创建html文档并添加js脚本代码fe:

<script type="text/javascript">
alert("Hello world");

</script>

If u want to run use React framework, i suggest you to start with https://reactjs.org/docs/create-a-new-react-app.html如果你想使用 React 框架,我建议你从https://reactjs.org/docs/create-a-new-react-app.html开始

It will create all necessary (basics) scripts for you.它将为您创建所有必要的(基本)脚本。 Than u will be able to run your website/components/js w/e via terminal script, and it will be display in your browser under localhost.然后您将能够通过终端脚本运行您的网站/组件/js w/e,它将显示在您的浏览器中的本地主机下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM