3 ms·
With coffeescript you can easily do with a dead-simple createElement wrapper something like: el = @div disabled: true, class: 'waves btn btn-small', id: 'MyN
by jampekka 2y ago
With coffeescript you can easily do with a dead-simple createElement wrapper something like:
el = @div disabled: true, class: 'waves btn btn-small', id: 'MyNewElement',
@div ...
- boredtofears 2y agoHow is that better than jsx?
- jampekka 2y agoIt doesn't need a new language and has a lot less noise. Loops and control structures work normally without extra syntax.
- boredtofears 2y agoCoffeescript is a new language though?
- lelanthran 2y agoI think coffeescript requires a build step. If I already had a build-step, then sure, I can throw a few things at the wall and see what sticks. For stuff that doesn't have a build-step, adding a build-step just to get an alternative to using the backticks seems like overkill.