const compB: React.FC = () => {
const testFn = () =>{
alert(…)
}
function summary(){
console.log(Summary)
}
}
export default compB;
const compA: : React.FC = () => {
const test=() =>
{
compB.summary();
compB.testFn();
}
return(
)
}
export default compA
Wanted to achieve this, method call from compA to the compB functions. Any suggestion?