Home  >  Article  >  Web Front-end  >  What's in the react family bucket?

What's in the react family bucket?

coldplay.xixi
coldplay.xixiOriginal
2020-12-11 09:39:096896browse

React is available in all buckets: 1. React is the core; 2. Redux is equivalent to the database; 3. React Router is a routing solution specially designed for React; 4. axios is used for browsers and Node js http client; 5. Ant Degisn is a good React library.

What's in the react family bucket?

#The operating environment of this tutorial: windows7 system, React17 version, thinkpad t480 computer.

The react family bucket has:

1, react

The core of react.

2. redux

redux is equivalent to a database and can be used as a local database. react-redux can complete data subscription and redux-thunk can achieve asynchronous Action, redux-logger is the log middleware of redux.

3. react-router

React Router is a routing solution specially designed for React. It uses the history API of HTML5 to operate the browser's session history.

React Router is split into four packages: react-router, react-router-dom, react-router-native and react-router-config. react-router provides core routing components and functions. react-router-config is used to configure static routing (still under development), and the other two provide specific components required for the running environment (browser and react-native).

To build the website (which will run in the browser environment), we should install react-router-dom. Because react-router-dom already exposes the objects and methods exposed in react-router, you only need to install and reference react-router-dom.

4, axios

axios is a Promise-based http client for browsers and Node.js. You can send http requests such as get and post to interact with the server.

5, antd

Ant Degisn is a good React UI library. It looks a bit similar to the bootstrap we are familiar with, from page layout to buttons to text prompt bubbles. Everything you need.

Related free learning recommendations: javascript(Video)

The above is the detailed content of What's in the react family bucket?. 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:How to write if in jqueryNext article:How to write if in jquery