[–] kentor 11y ago ↗ People who want to use a template system for React are seriously missing the point.When you use strings that converts into javascript, e.g. onChange="()=>this.toggleChecked(todoIndex) then you lose out on all the static analysis tools that work on javascript, the language. Are there any existing tools that are going to tell you that this.toggleChecked is undefined? I doubt it.Please embrace javascript, not crippled DSLs.
1 comment
[ 5.4 ms ] story [ 16.2 ms ] threadWhen you use strings that converts into javascript, e.g.
then you lose out on all the static analysis tools that work on javascript, the language. Are there any existing tools that are going to tell you that is undefined? I doubt it.Please embrace javascript, not crippled DSLs.