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)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more