重要!Ueact 只是实验性框架,请勿在任何生产环境下使用,笔者只是想严肃地自己撸一遍现有的前端框架。
Ueact: 彻底的渐进式前端框架
-
React: A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
simple-virtual-dom: Simple virtual-dom algorithm. It has only ~500 lines of code, including very basic idea of virtual-dom algorithm.
-
virtual-dom: A JavaScript DOM model supporting element creation, diff computation and patch operations for efficient re-rendering
LifeCycle
-
created / componentWillMount
-
mounted / componentDidMount
-
shouldComponentUpdate
-
updated / componentDidUpdate
-
unmounted / componentWillUnMount