TypeScript



1) How would you declare a component if you were using TypeScript ?

type obj_props = { 
   value: string
};
const Component_1: React.FunctionComponent<obj_props> = (props) => {
};



© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext