I have a btn in parent component and func in child component
<parent>
<child/>
<button onClick={myFunc}>call func</button>
</parent>
<child>
const myFunc = () => {
...
}
return{
}
</child>
I have a btn in parent component and func in child component
<parent>
<child/>
<button onClick={myFunc}>call func</button>
</parent>
<child>
const myFunc = () => {
...
}
return{
}
</child>