I've been using on:click and looking for an event using Svelte. How do I trigger a custom event within a child component that I can capture in a parent component? I've seen a tutorial where I can pass in something like this, however, I couldn't get it to hook up.
<Component on:customClick={myThing}>
The child component has some logic that looks like this:
<script>
export let myThing = '';
<script>
<input type="text" onClick={() => myThing= 'Update'} />
This does not seem to work, what am I missing?