摘要: 因为bind在render的时候会重现生成,这样会导致props每次都不同,puremixin的插件也会失效。所以需要将bind的结果缓存下来,或者直接在constructor里做这个事情 constructor() { super(); this.handleBack = this.... 阅读全文
posted @ 2015-12-01 11:40 wangchao719 阅读(672) 评论(0) 推荐(0) 编辑
摘要: https://github.com/clojure-emacs/ciderhttp://clojure-doc.org/articles/tutorials/emacs.htmlemacs通过brew先装起来先熟悉下emacs结束emcas:C-x C-c结束一半的命令:C-g 阅读全文
posted @ 2015-11-22 21:18 wangchao719 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 最近在使用iconfont排版,但是发现完全没法混到textarea中。希望借助 contentEditable解决这个问题 阅读全文
posted @ 2015-11-13 17:04 wangchao719 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 参考:https://hub.docker.com/r/stilliard/pure-ftpd/docker-compose.yml:ftp: image: stilliard/pure-ftpd volumes: - "../wp/app:/home/ftpusers/code" ... 阅读全文
posted @ 2015-11-06 11:39 wangchao719 阅读(4475) 评论(0) 推荐(0) 编辑
摘要: 链接首先通过spring函数Motion的style参数,传入Motion Component,计算style的过程: const style = lastPressed === i && isPressed ? { scale:... 阅读全文
posted @ 2015-11-04 17:17 wangchao719 阅读(328) 评论(0) 推荐(0) 编辑
摘要: /** * `Transaction` creates a black box that is able to wrap any method such that * certain invariants are maintained before and after the method is i... 阅读全文
posted @ 2015-10-23 18:20 wangchao719 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 最近在尝试用react native cameraiOS版本很方便就调试通过了,react的试用非常方便android版本要单独试用fork的屏蔽了lint的报错后也可以调试通过参考这篇文章填写好server的地址就可用真机调试了其他参考:http://liaohuqiu.net/cn/posts/... 阅读全文
posted @ 2015-10-08 20:01 wangchao719 阅读(489) 评论(0) 推荐(0) 编辑
摘要: ReactMount.render -> ReactMount._renderSubtreeIntoContainer->ReactMount._renderNewRootComponent -> ReactMount.batchedMountComponentIntoNode->ReactReco... 阅读全文
posted @ 2015-09-24 15:43 wangchao719 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 先从ReactRootView入手吧,它是一个FrameLayoutmReactRootView.startReactApplication 这的start其实是会等到inital onMeasure之后执行setContentView(mReactRootView); 这里将ReactRootVi... 阅读全文
posted @ 2015-09-22 16:04 wangchao719 阅读(498) 评论(0) 推荐(0) 编辑
摘要: https://github.com/Minwe/style-guide/blob/master/React.js.mdhttps://github.com/planningcenter/react-patternshttps://github.com/airbnb/javascript 阅读全文
posted @ 2015-09-11 11:55 wangchao719 阅读(260) 评论(0) 推荐(0) 编辑