Home >Web Front-end >Front-end Q&A >Is umijs a react framework?

Is umijs a react framework?

WBOY
WBOYOriginal
2022-06-27 17:47:482058browse

umijs is a react framework; umijs is a pluggable enterprise-level react application framework based on routing, supporting conventional routing like "next.js" and various advanced routing functions. And use this to expand functions; umijs is equipped with a plug-in system with a complete life cycle, covering every life cycle from source code to built products, supporting various functional expansion and business needs.

Is umijs a react framework?

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

Is umijs a react framework?

umijs is a react framework

umi officially claims to be a pluggable enterprise-level react application framework. umi is based on routing, supports conventional routing like next.js, and various advanced routing functions, and uses this to expand functions, such as supporting routing-level on-demand loading. Then it is equipped with a complete plug-in system, covering every life cycle from source code to built products, supporting various functional expansions and business needs. Currently, there are 50 internal and external plug-ins.

umi is the underlying front-end framework of Ant Financial and has directly or indirectly served 600 applications, including supporting java, node, H5 wireless, offline (Hybrid) applications, pure front-end assets applications, CMS applications, etc. He has served our internal users well, and I hope he can also serve our external users well.

Umi, which can be pronounced as Umi in Chinese, is a scalable enterprise-level front-end application framework. Umi is based on routing and supports both configured routing and conventional routing to ensure complete routing functions and expand functions accordingly. Then it is equipped with a plug-in system with a complete life cycle, covering every life cycle from source code to built products, supporting various functional expansions and business needs.

Extended knowledge:

It mainly has the following functions:

1. Extensible, Umi implements a complete life cycle and makes it plug-in ization, Umi’s internal functions are all completed by plug-ins. Plug-ins and plug-in sets are also supported to meet the hierarchical needs of functional and vertical domains.

2. Out of the box, Umi has built-in routing, construction, deployment, testing, etc., and you only need one dependency to get started with development. It also provides an integrated plug-in set for React, with rich functions that can meet 80% of daily development needs.

Why not? create-react-app

create-react-app is a packaging layer solution based on webpack, including build, dev, lint, etc. It maximizes the experience in the packaging layer, but it does not include routing and is not a framework. Configuration is also not supported. Therefore, if you want to modify some configurations based on it, or if you want to achieve technical convergence outside of the packaging layer, you will encounter difficulties.

# 创建目录
$ mkdir myapp && cd myapp
 
 
# 安装依赖
$ yarn add umi
 
 
# 创建页面
$ npx umi g page index --typescript --less
 
 
# 启动开发
$ npx umi dev

【Related recommendations: javascript video tutorial, web front-end

The above is the detailed content of Is umijs a react 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
Previous article:what is react curryingNext article:what is react currying