Mastodon hachyterm.io

I’m trying to wrap my head around React’s render props and Svelte’s slots.

Not much to write here, I still try to understand how it works.

State Management in SPAs is quite complicated.

There are a lot of solutions: passing props down, the Context API, the new useContext hook, state management libraries like Redux or MobX, state machines, etc.

But you can also use component composition by rendering the children props.

This technique seems to be similar to Svelte’s component composition with slots.

It all seems quite complicated.

I still have to learn a lot.

Further Reading