react
在传统组件架构的基础上增加了创新性的 虚拟 dom
和 diff
算法,减少了传统组件架构的手动局部渲染问题,并使用类似 html 的 jsx
语法来构建组件,配合极简的 api,概念很少,入门很快。
本文将介绍如何从传统的组件架构 KISSY 迁移到 react。示例组件为 menu
以及calendar/date-picker
kissy menu: https://github.com/kissyteam/menu react menu:https://github.com/react-component/menu
kissy date-picker: https://github.com/kissyteam/date-picker react calendar:https://github.com/react-component/calendar