|
|
|
|
|
by ElectricalUnion
29 days ago
|
|
No, that is not TypeScript. That's TSX. If you don't happen to have react, preact or a similar front end library, and a appropriate bundler, it is invalid TypeScript. > That looks like HTML, but it's TypeScript. It gets compiled to actual HTML. Can any Python framework do that?? IMHO that's a terrible idea that no one should ever actually use, but if you are really in love with that, you can have it: https://github.com/pyxy-org/pyxy |
|
Not true, you can compile it to HTML on the backend or even statically too.
It's not a terrible idea; it's actually amazing. One of Typescript's best features. I do agree at first it seems icky (reminds me of Qt's MOC) but in practice it's fantastic. I recommend you try it before criticising. Python has nothing close (nor do any other languages tbf).