晚上在公司(Teambition)分享 React 的底稿
幻灯片比较苍白,前面补上一些讲过跟后面想到的内容吧.. 刚才听活动忘记这边加点说明.. React 让这样一个思路非常清晰了,而且性能和模块化方面处理得也非常好 考虑到分享内容是中文,在场有老外,所以有英文写了大概的提纲: CNode.js Web Client based on ReactRender Apps with React share my small web app built with React Me: ChenYong,@jiyinyiyong @题叶
CSS -> jQuery(first meet 寸志) -> Backbone -> Ractive.js -> Vue.js -> React -> Famo.us tools to build interactive user interface... Reacta View library from Facebook
Build a Web Client,with ReactSite http://r.nodejs-china.org/ -> Me.. write JSX but in CoffeeScript About CNodeSite: https://cnodejs.org/ Chinese Node.js Community. CNode uses EJS as HTML Templatewhich supports <div id="topic_list"> <%- partial('../topic/abstract',{collection:topics,as:'topic'}) %> </div> Composition is important in programming. Fun with React Componentsin React renderTitles: -> @state.topics.map (topic) -> TopicTitle key: topic.id,data: topic Model Driven View,(DOM update aotumaticly,like Agular) Components
also
react-routerhttps://github.com/rackt/react-router#whats-it-look-like routes = Routes location: 'hash',Route page: '/',handler: Page,DefaultRoute handler: TopicList NotFoundRoute handler: TopicList Route name: 'messages',page: '/messages',handler: MessagesPage Route name: 'topic',path: '/topic/:topicid',handler: TopicPage Route name: 'user',path: '/user/:userid',handler: UserPage Route name: 'post',path: '/post',handler: PostPage SIna Weibo http://weibo.com/reactchina Thanks (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |