fantasticsoul's recent timeline updates
fantasticsoul

fantasticsoul

V2EX member #78818, joined on 2014-10-27 15:42:05 +08:00
fantasticsoul's recent replies
Sep 29, 2020
Replied to a topic by fantasticsoul 酷工作 招聘高级前端开发工程师(腾讯新闻)
@deepred 北京
Aug 27, 2020
Replied to a topic by JayLin1011 React 求安利经典 React 开源项目推荐。
concent, 一个很有趣的状态管理方案
https://github.com/concentjs/concent
非常不错的小库哦,不过你可可以了解下 concent, 一个可预测、0 入侵、渐进式、高性能的增强型 react 状态管理方案,全方位提升你的 react 编码体验!
可中心化也可以去中心化的配置和管理 model,携带 computed, watch, effect, emit&on, sync,setup 等增强特性。
内置了 renderKey、lazyDispatch、delayBroadcast 等性能优化。
Hoc class, renderProps, hook 三种组件写法高度统一,对于 concent 来说,它们只是渲染的载体,注入的核心 api 是 concent 的灵魂。

setup 特性
https://stackblitz.com/edit/hook-setup
renderKey,长列表精准渲染,缩小渲染范围
https://stackblitz.com/edit/hook-setup
lazyDispatch,状态变更合并提交,减少渲染次数
https://stackblitz.com/edit/concent-lazy-dispatch
delayBroadcast,高频输入延迟广播,降低渲染频率
https://stackblitz.com/edit/concent-delay-broadcast
一个相对复杂的示例
https://stackblitz.com/edit/cc-multi-ways-to-wirte-code

antd-pro-concent
https://github.com/concentjs/antd-pro-concent

更多特性可以阅读官网文档:
https://concentjs.github.io/concent-doc
@bigbee 真看不懂留的联系方式,em=email,dot=@,#代表啥?why do you leave such a strange symbolic character,I extremely confused by your email style,I really do not think it a cool way,dude,but I've written down my em,give me a chance if you want,looking forward to your reply^O^
@bigbee 怎么联系你 [email protected]?
@bigbee 是某手游后端主程,现使用的就是nodejs,如果兼职,投入时间每天保证多少时间哦?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4128 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 05:20 · PVG 13:20 · LAX 22:20 · JFK 01:20
♥ Do have faith in what you're doing.