Typing functions with TypeScript. How to do it properly in ReactJS?
When I started learning Typescript with React I was able to stick with the convention of defining components with a const
keyword. After some I switched teams and we decided to use function declarations as a convention for defining React components.