You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
抽象化。Virtual DOM 是对 DOM 的抽象,在 Virtual DOM 的基础上又有了服务端渲染、React-native、react-canvas 这样的方案。
不可变性。不可变性是实现声明式构建 view 的基础。DOM API 是命令式的,具有可变性,Virtual DOM 提供了一套声明式的语法,并且不提供直接操作 DOM 的命令接口,这样保证了 view 的不可变性。
DOM diff。DOM diff 是 Virtual DOM 底层基于 DOM 构建 view 的性能优化。
React may target the underlying browser’s Box Tree, the Graphics Layer, WebGL, and also mobile platforms like Android’s View system or iOS’s UIKit. Sebastian made it clear DOM diffing is just a necessary hack for the time being.
React 和 reactmvc
React
React 是一个用于构建前端界面的 Javascript 库。可以从下面三个方面来描述 React,
Just the UI
Virtual DOM
Data Flow
Flux
Flux 架构
Flux vs Redux
存在的问题
reactmvc
Traditional MVC
MVC in frontend
Model, Controller, View
目标
实现
项目地址:https://github.com/ustccjw/reactmvc
The text was updated successfully, but these errors were encountered: