DEV Community

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

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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up