I have converted these react components from Javascript:
function A = ({prop1, prop2...}) => {}
A.name = "name";
function B = ({prop1, prop2...}) => {}
B.last = "last";
function C = ({prop1, prop2...}) => {}
C.A = A;
C.B = B;
to typescript:
const A: FC<AProps> = ({props1, props2...}) => {...}
const B: FC<BProps> = ({props1, props2...}) => {...}
const C: FC<CProps> = ({props1, props2...}) => {...}
while I have typed the props for each component, but the thing is that I didn't know how to type the A.name = name; and B.name = name; and
C.A = A;
C.B = B;
so is there any idea how to do that ?