DEV Community

[Comment from a deleted post]
Collapse
 
samjohnsondev profile image
Sam Johnson

Hey, this looks great! A couple of pointers. You don't need to import the each function from the svelte internals you can just use it straight away in your template. I think this would be even better split across into a few components? Have a look at how props and state is handled in svelte so you can share data across the components. Svelte stores are really good.

Collapse
 
_pandacrew_ profile image
_PandaCrew_ • Edited

Thanks bro, I'm starting at svelte now, I'm going to look for the stores, and keep studying this js framework .