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

  • Beginning React
  • Andrea Chiarelli
  • 226字
  • 2021-07-23 17:10:29

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.

主站蜘蛛池模板: 南皮县| 遂昌县| 靖江市| 维西| 汽车| 青神县| 夏津县| 华安县| 兰州市| 吴堡县| 林芝县| 上林县| 将乐县| 油尖旺区| 乐山市| 太原市| 南开区| 通山县| 吉林省| 南木林县| 绥化市| 云南省| 深泽县| 乌鲁木齐市| 武汉市| 若羌县| 乌兰浩特市| 凉山| 姜堰市| 辉县市| 大渡口区| 柯坪县| 巴里| 湟中县| 巴彦淖尔市| 禹州市| 鹤壁市| 宁明县| 盐源县| 阳泉市| 桦南县|