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

  • 相关阅读:
    Selenium IDE
    selenium简介
    Java程序要操作数据库,一定要使用JDBC技术吗?
    JDBC几个接口分区叫什么?它们分别有什么用?
    JDBC的全称是什么?
    什么时候使用session?什么时候使用application?
    内置对象session和application的作用是什么?
    修改表单中为什么要使用隐藏域?
    如何创建一个不能修改的属性?
    如何修改属性?
  • 原文地址:https://www.cnblogs.com/feng9exe/p/11044271.html
Copyright © 2011-2022 走看看