React


Author: yifei / Created: May 30, 2017, 10:10 p.m. / Modified: May 30, 2017, 10:10 p.m. / Edit

Most important ideas:

Widget based

Note: You can write your whole app in React, but you can also use it as a component in your app props

state

Single data flow with dom-diff

Most Notable methods

React.Component React.Component.render React.render

Yifei's Notes

过去写界面的方法是,把所有的结构(html),动作(js),样式(css)分开,好处是非侵入,离了谁都鞥工作,缺点是无法模块化,在 js 无足轻重,甚至有 noscript 这种插件的过去显然是最佳实践,但是到了 js 大行其道的今天显然模块化又被提出来了。。


评论区