React introduction and use

Posted Jun 6, 20201 min read

React introduction and use

Blog description

The information involved in the article comes from the Internet collation and personal summary, which means personal learning and experience summary. If there is any infringement, please contact me to delete, thank you!

Introduction

JavaScript library for building user interfaces

Features

Declarative

React makes creating interactive UI a breeze. Design a concise view for each state of your application. When data changes, React can effectively update and correctly render components.

Writing UI in a declarative way can make your code more reliable and easy to debug.

Componentization

Create components with their own states, and then these components form a more complex UI.

Component logic is written in JavaScript instead of templates, so you can easily pass data in your application and separate the state from the DOM.

Learn once, write anywhere

No matter what technology stack you are using, you can always introduce React to develop new features without rewriting existing code.

React can also use Node for server rendering, or React Native to develop native mobile applications.

Installation

npx create-react-app my-app

Run

cd my-app
npm start

image-20200606211440159

image-20200606211428285

thank

Universal Network

And hardworking self