Home  >  Article  >  Web Front-end  >  The difference between bootstrap and react

The difference between bootstrap and react

angryTom
angryTomOriginal
2019-08-01 14:33:074130browse

The difference between bootstrap and react

In the eyes of many people, bootstrap and react are both front-end frameworks. In fact, they still have many differences. Bootstrap is a front-end page framework, used to quickly develop responsive pages, and react’s VisualDom (Virtual Dom); React manages changes to the Dom tree. Developers only need to use React’s virtual Dom for development, and the page will be rendered faster.

BootStrap:

It is characterized by a grid system, which is simple to use and easy to get started. It is specially designed for responsive pages. One set of code can adapt to tablets and PCs.

  The disadvantage is that, lack of a set of There are powerful systematic components (it didn’t exist at the time of the survey, but it is said that it exists now). When I actually used it, scope conflicts occurred. If a complete set of components is not sorted out, development will be very tiring.

If you want to know more about bootstrap, you can click: bootstrap tutorial

React:

There are two main features:

 1. One-way response of data. When the data changes, React will automatically manage the UI interface update

 2. VisualDom (virtual Dom). Changes to the Dom tree are managed by React. Developers only need to use React's virtual Dom for development, and the page will be rendered faster.

This leads to a greater advantage: Virtual Dom to The mapping of the real Dom is controlled by React. So what if the virtual Dom is mapped to IOS or Android? So React Native was born, and about 80% of the Reactive Native code can support both IOS and Android.

 The disadvantage is that, the GPL agreement of React has been changed recently, which can easily cause business problems...

If you want to know more about react, you can click:react tutorial

The above is the detailed content of The difference between bootstrap and react. 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:vue bootstrap differenceNext article:vue bootstrap difference