Slots turn components into wrappers that enhance your dynamic content.
What Are Slots?
Slots in Web Components
Slots in Vue
Slots in Angular
...
For further actions, you may consider blocking this person and/or reporting abuse
Hey. There are couple of great libraries that allow you to use slots in React today!
Here's one I made github.com/Flammae/react-slots
Check it out if it's something you are interested in and let me know what you think.
I really like the
slotparadigm! It just "makes sense" to me. Really great summary on them.Svelte had also adopted the slots, t'was one of the reasons I've liked Svelte for a while. Which is why it worries me a bit that Svelte 5 is deprecating slots in favor of something more like React's props. But I'm trying to keep an open mind ( :
Great stuff. I am excited that the skill of Vue is transferrable to Angular and vice versa.
defineModel <=> Angular modern Input
reactivity <=> Angular signals
inject/provide <=> Angular inject/InjectionToken/Provider
slot <=> NgContent