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 发布文章使用:只允许注册用户才可以访问!