Earlier quoted context omitted.
function Greeting({ name }: { name: string }) { return ( Hello, {name}! Welcome to my site. ); } That looks like HTML, but it's TypeScript. It gets compiled to actual HTML. Can any Python framework do that?? In Python, you'd typically write your logic in Python and your HTML in a separate Jinja2 template file — two languages, two files, context-switching. With Fresh + TSX, your logic and your markup live together in…
That's the ugliest spaghetti i've seen in a long time. Why would anybody want to do that to themselves or their co-coders? Yes, separating html out in jinja2 or whatever is far superior.
1. You can compose HTML using normal code - functions, loops, etc. No separate shitty template language or whatever.
2. You get full support for static typing and IDE code intelligence. That's huge and pretty much unique to TSX.