This is my accord component action:
accord.js
const toggle = useCallback(() => {
if (!disabled) {
setExpand((expand) => !expand);
}
}, [disabled, setExpand]);
<div className={`Accord`} onClick={toggle} >
How to invoke accord action from other components?