4 ms·
I'm using typescript with React right now...and typescript does a decent job with jsx checking. (saved me from a lot of missing / wrong prop name errors) anywa
by devdoomari 10y ago
I'm using typescript with React right now...and typescript does a decent job with jsx checking.
(saved me from a lot of missing / wrong prop name errors)
anyway, does typescript support some kind of template-string validation for angular2? If so, I'm going to really re-consider angular2 for my next project
- ta_donk_gt 10y ago> does typescript support some kind of template-string validation for angular2 No, and that's the reason I mention jsx as a missing feature from Angular 2. There is no compile time or refactoring support for templates, whereas with TypeScript and jsx you get that.
- robwormald 10y agoTypescript doesn't directly, but Angular2 does (or will, this is just coming online) - our offline compiler converts your html templates into TS, and then regular TS typechecking can take over. See https://github.com/microsoft/typescript/issues/6508 https://github.com/microsoft/typescript/issues/6508 (and the GIF!)