[React+Typescript] React.FC를 굳이 사용하지 않아도 되는 이유
1. 코드 가독성 const Greeting:FC = function({ name }) { return Hello {name} } function Greeting({ name }: GreetingProps) { return Hello {name} } 굳이 FC type을 명시해줘서 코드 가독성이 떨어진다. 2. FC always imply children export const Greeting:FC = ({ name }) => { // name is string! return Hello {name} }; // use it in the app const App = () => {"I can set this element but it doesn't do anything"} React.FC는 암묵적으로 chil..