components & slot
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://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 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/11149305.html
未经授权禁止转载,违者必究!