4 ms·
You can write custom jsx function and let typescript call your function instead of react's. Your custom jsx function can return data in reusable format, that i
by aabbcc1241 3y ago
You can write custom jsx function and let typescript call your function instead of react's.
Your custom jsx function can return data in reusable format, that is passed to different functions for difference use case.
ts-liveview is using this approach to use jsx for both server-side rendering and compact over-the-wire updates
- brundolf 3y agoWhat I'd like is for it to have been a standard language feature, that can be used with or without a framework and without any build involvement