zoukankan      html  css  js  c++  java
  • What Is React?--MVC

    React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called “components”.

    React has a few different kinds of components, but we’ll start with React.Component subclasses:

    React is a JavaScript library for building user interfaces.

    • Declarative: React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable, simpler to understand, and easier to debug.
    • Component-Based: Build encapsulated components that manage their own state, then compose them to make complex UIs. Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
    • Learn Once, Write Anywhere: We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code. React can also render on the server using Node and power mobile apps using React Native.

    React 特点

    • 1.声明式设计 −React采用声明范式,可以轻松描述应用。
    • 2.高效 −React通过对DOM的模拟,最大限度地减少与DOM的交互。
    • 3.灵活 −React可以与已知的库或框架很好地配合。
    • 4.JSX − JSX 是 JavaScript 语法的扩展。React 开发不一定使用 JSX ,但我们建议使用它。
    • 5.组件 − 通过 React 构建组件,使得代码更加容易得到复用,能够很好的应用在大项目的开发中。
    • 6.单向响应的数据流 − React 实现了单向响应的数据流,从而减少了重复代码,这也是它为什么比传统数据绑定更简单。

    React 是一个用于构建用户界面的 JAVASCRIPT 库。

    React主要用于构建UI,很多人认为 React 是 MVC 中的 V(视图)。

    https://www.runoob.com/react/react-tutorial.html

    https://reactjs.org

    https://segmentfault.com/a/1190000017182184

    react 16.7 hooks - effect 详解

    https://blog.csdn.net/hesongGG/article/details/83582250

    React Hooks 深入不浅出

    https://segmentfault.com/a/1190000017182184

    UI

    数据(状态)

    事件

    声名周期

    React Hooks

  • 相关阅读:
    让DBGrid不能插入记录
    利用Stream下载文件
    设置文本框只能输入数字
    正则表达式的使用
    在同一页面处理提交代码
    HTML集合属性的应用
    移动MAS短信API libmySQL.dll无法添加引用
    ArcServer for Silverlight系列之属性查询
    aspnet_wp.exe w3wp.exe
    更改嵌入互操作类型 无法从程序集**中嵌入互操作类型,因为该程序集缺少“ImportedFromTypeLibAttribute”特性或“PrimaryInteropAssemblyAttribute“特性
  • 原文地址:https://www.cnblogs.com/feng9exe/p/11044271.html
Copyright © 2011-2022 走看看