#How to declare the type of arrow function component on React 15
6 messages · Page 1 of 1 (latest)
It's my understanding that TypeScript in a React context should infer the type, right? You shouldn't need to specify it explicitly?
6 messages · Page 1 of 1 (latest)
export const HomePage: React.FunctionComponent<t_home_page_props> = (props) => <div>test</div> , I use it but typescript throw the error on the screenshot. Is there anyone know what's wrong with it? Thank you very much !
It's my understanding that TypeScript in a React context should infer the type, right? You shouldn't need to specify it explicitly?