You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I only have experience with React and Vue here (and Vue 2 may set the cat amongst the pigeons in feature comparisons when it also adds render() methods), so some examples of the sort of thing I mean.
Vue.js implements a content distribution API that is modeled after with the current Web Components spec draft, using the special element to serve as distribution outlets for the original content.
I only have experience with React and Vue here (and Vue 2 may set the cat amongst the pigeons in feature comparisons when it also adds render
()
methods), so some examples of the sort of thing I mean.React
http://facebook.github.io/react/docs/multiple-components.html#children
http://facebook.github.io/react/docs/top-level-api.html#react.children
https://discuss.reactjs.org/t/children-as-a-function-render-callbacks/626 - "render callbacks"
Placing all child contents
MyComponent#render()
:Passing rendered elements as props
MyComponent#render()
:Dynamic component as a prop
MyComponent#getDefaultProps()
:MyComponent#render()
:Vue
https://vuejs.org/guide/components.html#Content-Distribution-with-Slots
Placing all child contents
MyComponent
template:Named slots
MyComponent
template:The text was updated successfully, but these errors were encountered: