I just start working on a react project with typescript and ask myself what should I do with regular class files? should I use .ts or .tsx files and then I couldn't find any reason to do not using .tsx file all the times even when it's not a react project! Is there any reason or specific situation that we shouldn't use .tsx files? if no why typescript team add whole new extension?
from Is there any downside to using .tsx instead of .ts all the times in typescript?
No comments:
Post a Comment