SSolidJS•Created by Barbara88 on 5/5/2024 in #support Binding to component onClick
Thanks!
I am passing down a function from the parent component now, the prop has the type
clickFunc: () => void
and binding to it using onClick={props.clickFunc}
in the child function.
Just wanted to check that is the best way to do it?