Create a simple React js app demo under the windows


Create a simple React JS application

By Xueshang Nai

React is a JAVASCRIPT library used for building reusable UI components.

In order to set up an App environment for React development. There are many steps involved but this will help speed up the development process later. We will need Node.JS, so if we don't have it installed, check and to install it according the following table:

Software & Description

Node.JS and NPM

Node.JS is the platform needed for the React.JS development. Checkout our NodeJS Environment Setup.

 

We can now set up a local React app and head straight to the overview.

Open the command line of Windows and run the following commands, we can specify the application fold.

npm install -g create-react-app

Create -react-app my-app  

//create a React App, the name is my-app. After this. It will create a fold my-app and its dependence files.

 

cd my-app

npm start

// The above cmd is to start the react application. And this can show the react app in the browser. After we do this, we can load the app throw the url:http://localhost:3000/ or http://172.20.20.14:3000/ in the browser.

 

 

 

After the above steps. We create an app project fold at the same time. In the my-app fold,  there are so many folds and files. But here we mainly pay attention to the fold src which contains the main application App.js. We can use WebStorm to open my-app  and show all the file list in the left. And we can open the App.js and edit it.  If modify the code of App.js. The browser can flush the page dynamically.

 


 

We can edit the logo file and the browser will flush the web page dynamically.

 

This is only a simple demo for app creation. If we want to construct the more complicated app for our product. We need to design the functions and implement them and integrate them together or we can integrate some open source code.

We can use SVG editor to modify the logo.svg in the src fold.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本方法。编译原理不仅是计算机科学理论的重要组成部分,也是实现高效、可靠的计算机程序设计的关键。本文将对编译原理的基本概念、发展历程、主要内容和实际应用进行详细介绍编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本方法。编译原理不仅是计算机科学理论的重要组成部分,也是实现高效、可靠的计算机程序设计的关键。本文将对编译原理的基本概念、发展历程、主要内容和实际应用进行详细介绍编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本方法。编译原理不仅是计算机科学理论的重要组成部分,也是实现高效、可靠的计算机程序设计的关键。本文将对编译原理的基本概念、发展历程、主要内容和实际应用进行详细介绍编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本方法。编译原理不仅是计算机科学理论的重要组成部分,也是实现高效、可靠的计算机程序设计的关键。本文将对编译原理的基本概念、发展历程、主要内容和实际应用进行详细介绍编译原理是计算机专业的一门核心课程,旨在介绍编译程序构造的一般原理和基本

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值