Hi just getting started with svelte (and javascript).
I'm building an art gallery app. All the art works are in paintings.json,
In the Header component I have several buttons ( with on:click events) to select a medium (water color, oils etc.) and I want to pass the medium clicked to App.svelte so I can filter the paintings.json file. What would be the best way to do this?
Any help - including code snippets - much appreciated
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi just getting started with svelte (and javascript).
I'm building an art gallery app. All the art works are in paintings.json,
In the Header component I have several buttons ( with on:click events) to select a medium (water color, oils etc.) and I want to pass the medium clicked to App.svelte so I can filter the paintings.json file. What would be the best way to do this?
Any help - including code snippets - much appreciated