What Is React?
Posted feng9exe
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了What Is React?相关的知识,希望对你有一定的参考价值。
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
以上是关于What Is React?的主要内容,如果未能解决你的问题,请参考以下文章
What is a shell and what is Bash?
The truth is what it is, not what you see
what is feeding and what is 读扩散 and 写扩散?
高中必修3Module 3 Period 1 Reading— What Is a Tornado?翻译!急!急!!急!!!