DEV Community

Cover image for Svelte – props downlifting (pattern) & uplifting (anti-pattern)
Lukas Gaucas
Lukas Gaucas

Posted on • Edited on

Svelte – props downlifting (pattern) & uplifting (anti-pattern)

To feel oneself completely on foot you need to be able go back and forth, right? So here it goes...


NOTE : In case codesanbox.com IDE would throw an error on initial load, just try to reload the IDE !

Svelte state downlifting (pattern)

You probably noticed I've used slots , I'll guess this is "at a good place at a good time" to exploit slots tho...

Svelte state uplifting (anti-pattern)

...


If any suggestion how to improve the source code or relevant , please let me know in the comment section below . Take care !

Top comments (0)