Do you prefer function declarations or function expressions for React components in TypeScript? Why?
Function declarations are great for beginners and for a project which has turned huge and is already usin it ( like you obviously need to maintain consistency within a codebase)..... function expressions are better if you have some experience and the project is new
You can always refactor it
Обсуждают сегодня