Modular development of React+gulp+browserify

Source: Internet
Author: User

Reading this article requires a basic knowledge of React, and can be used in the React Introductory Example Tutorial and React Chinese website for basic Learning.

There is no REACT Foundation can also learn this article, this article is not to learn react, but gulp+browserify for modular development.

1. Create Project and environment Setup

We can first create a folder called React_item, as the root directory of the project.

Open the command line, CD to the project root directory, we need to install gulp via NPM, enter:

NPM Install Gulp-g--save-dev

Tip: A friend who does not have node. js installed can go to the node. js Chinese web download

Gulp is the automation of the front-end project to build tools, so that we can easily manage their own projects, saving us a lot of time, details see Gulp Chinese web

The next step is to install the browserify, as above, with NPM to install:

NPM Install browserify--save-dev

Because the project is developed using react, we need to install React.js and react-dom.js, under normal circumstances we will not put JSX in the browser side

  

  

Modular development of React+gulp+browserify

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.