I have two components.
I was trying to call child\'s method from Parent, I tried this way but couldn\
Alternative method with useEffect:
Parent:
const [refresh, doRefresh] = useState(0); doRefresh(prev => prev + 1)} />
Children:
useEffect(() => { performRefresh(); //children function of interest }, [props.refresh]);