4 ms·
The advantage of JSX & TSX used together is that you know exactly what data goes into your component. In larger projects this is massive improvement over just h
by wirtsi 2y ago
The advantage of JSX & TSX used together is that you know exactly what data goes into your component. In larger projects this is massive improvement over just having "some" data that you access in your HTML templates.
From my perspective, Typescript in combination with JSX is the best thing to have come out of React, any component in a larger project should have good typing to avoid problems down the road.
- jermaustin1 2y agoI'm not saying JSX/TSX don't have a place, but calling them "old-school" is a bit... odd. I feel like it is only 5-6 years old. To me old-school means at least a few generations old: ASP (classic (1996) or .Net (2002)), Rails (2004), Django (2005), PHP (1995), JSP (1999), ColdFusion (1995), etc. Anything that is the current "standard" seems like it should be called "new-school."
- rimunroe 2y ago> I'm not saying JSX/TSX don't have a place, but calling them "old-school" is a bit... odd. I feel like it is only 5-6 years old. I agree that it doesn't qualify as "old-school" in the context of web development as a whole, but JSX and React were released a bit over 11 years ago.