react sfc code example
Example 1: react functional component typescript
import React from 'react';
interface Props {
}
export const App: React.FC<Props> = (props) => {
return (
<>
<SomeComponent/>
</>
);
};
Example 2: SFC in react
(SFC) stateless functional component