官术网_书友最值得收藏!

What is React?

To put it simply, React is a JavaScript library for building composable user interfaces. This means that we can build a user interface by composing items called components. A component is an element that contributes to building a user interface. It could be a textbox, a button, a whole form, a group of other components, and so on. Even the entire application's user interface is a component. So, React encourages the creation of components to build a user interface; it's even better if these components are reusable.

React components have the ability to present data that changes over time, and the visualization of that changing data is automatic when we follow a few guidelines.

Since the library deals with user interfaces, you may wonder which presentational design patterns React was inspired by: Model-View-Controller, Model-View-Presenter, Model-View-ViewModel, or something else. React is not bound to a specific presentational pattern. React implements the View part of the most common patterns, leaving developers free to choose the best approach to implement the model, the presenter, and everything else they need to build their application. This aspect is important, since it allows us to classify it as a library, not as a framework; therefore, comparisons with frameworks such as Angular may throw up some inconsistencies.

主站蜘蛛池模板: 涡阳县| 河北区| 三江| 沽源县| 永仁县| 英吉沙县| 新昌县| 江西省| 平舆县| 兴化市| 图木舒克市| 澎湖县| 镇宁| 固阳县| 城固县| 乐清市| 兴城市| 临沧市| 那曲县| 延津县| 荆门市| 台中县| 莱芜市| 民乐县| 长丰县| 砚山县| 曲沃县| 富裕县| 霍林郭勒市| 广水市| 辉南县| 团风县| 长泰县| 黄浦区| 孟连| 牡丹江市| 渑池县| 柘城县| 浦东新区| 庐江县| 会昌县|