DEV Community

Discussion on: Converting a React component to TypeScript

Collapse
 
mbarzeev profile image
Matti Bar-Zeev

BTW, I'm not using FC on purpose ;)

Collapse
 
mbarzeev profile image
Matti Bar-Zeev

... and another thing - I like to keep my component's state as such, even though the "disabled" can be calculated on render. I find it more convenient if later on I would like to introduce a prop which initialize that state and it is much more readable IMO.