components & slot

vue

https://github.com/vuejs/rfcs/blob/master/active-rfcs/0001-new-slot-syntax.md

https://cn.vuejs.org/v2/guide/components-slots.html

https://michaelnthiessen.com/pass-function-as-prop

not too good

good

slot

https://adamwathan.me/the-trick-to-understanding-scoped-slots-in-vuejs/



React

https://reactjs.org/docs/composition-vs-inheritance.html

https://daveceddia.com/pluggable-slots-in-react-components/

https://blog.logrocket.com/modern-component-reusability-render-props-in-react-scoped-slots-in-vue-ff3c5b2dc899/

https://medium.com/@srph/react-imitating-vue-slots-eab8393f96fd

https://www.npmjs.com/package/react-slot



refs

https://zhuanlan.zhihu.com/p/33728369

https://ant.design/components/



xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. ASP.NET MVC 5 05 - 视图
  2. Mimikatz 使用Tips
  3. 16. 3Sum Closest
  4. 【chrome插件】web版微信接入图灵机器人API实现自动回复
  5. linux命令使用记录
  6. ecshop Admin后台商品列表处(上架、下架、精品...取消精品)增加操作
  7. Qt webkit插件相关知识
  8. MySQL下载、安装和修改root密码
  9. 误导人的接口(interface)
  10. DedeCMS中最重要的四类表
  11. python代码`if not x:` 和`if x is not None:`和`if not x is None:`
  12. Java缓存类的实际应用场景
  13. 【DDD】业务建模实践 —— 删除帖子
  14. Autoware(2)—加载地图数据
  15. COUNT分组条件去重的sql统计语句示例(mysql)
  16. 为什么css定位雪碧图(合成图)都要以负号开头?
  17. python if __name__ == 'main' 的作用和原理()
  18. python virtualenv使用
  19. preprocessor设置调试宏
  20. Linux(Contos7.5)环境搭建之Gitblit安装(三)

热门文章

  1. 使用Linux服务器来通过网络安装和激活Windows 7 —— 一些基本原理
  2. Java并发包源码学习系列:阻塞队列实现之SynchronousQueue源码解析
  3. stop脚本
  4. linux yum rpm 和 apt-get dpkg 安装、卸载软件
  5. OpenStack (glance 镜像服务)
  6. python ---线程,进程,协程
  7. 菜鸟初学Linux——Ubuntu系统中,用root权限进行复制粘贴操作
  8. (10)Linux挂载详解
  9. three.js cannon.js物理引擎制作一个保龄球游戏
  10. C - Door Man(欧拉回路_格式控制)