Home  >  Article  >  Web Front-end  >  Is react a progressive framework?

Is react a progressive framework?

WBOY
WBOYOriginal
2022-06-27 16:15:171603browse

react is a progressive framework; react is a JavaScript library used to build user interfaces. The React framework usually refers to a combination of react, "react-router" and "react-redux", and the React framework is progressive ; React adopts declarative coding UI, which can easily implement interactive UI, making the code more feasible and convenient for debugging.

Is react a progressive framework?

The operating environment of this tutorial: Windows 10 system, react17.0.1 version, Dell G3 computer.

react is a progressive framework

What is React

Official: A JavaScript library for building user interfaces.

So React is not a framework, but a library for front-end data rendering.

The React framework that people often refer to refers to: the combination of react react-router react-redux.

The React framework is progressive.

React originated as an internal project at Facebook, originally used to build Instagram, and was later open sourced in May 2013.

Features of React

High performance: Virtual DOM (Virtual DOM) cooperates with the diff algorithm to minimize interaction with the DOM.

Declarative: React adopts declarative coding UI, which can easily implement interactive UI, making the code more feasible and convenient for debugging.

Componentization: Building components through React makes it easier to reuse code and can be efficiently applied in the development of large projects.

One-way response data flow: Data in React is passed from top to bottom in one direction. Updates to parent component data will be automatically passed to child components, but data updates to child components will not affect the parent. component, nor can the data passed in by the parent component be modified in the child component

JSX extension: JSX is an extension of JavaScript syntax. React development does not necessarily use JSX, but the official website recommends using it.

Flexible: React can work well with known libraries or frameworks.

Expand knowledge:

Global installation of scaffolding

$ npm i -g create-react-app

Quickly build engineering projects based on scaffolding

$ create-react-app xxx项目名称

Project execution command (package.json)

$ yarn start //=>开发环境下启动项目(默认会基于webpack-dev-server创建一个服务,用来随时编译和翻译开发的内容)
$ yarn build //=>生产环境下,把编写的内容打包编译,放到build文件目录下(服务器部署)
$ yarn eject //=>把所有隐藏在node_models 中的webpack中的配置项都暴露出来(方便自己根据项目需求,二次更改webpack配置)

[Related recommendations: javascript video tutorial, web front-end]

The above is the detailed content of Is react a progressive framework?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn