|
|
|
|
|
by Nemcue
3932 days ago
|
|
"I'm still yet to be convinced that JSX is a good idea, why break existing tooling and significantly complicate parsers for what appears to only be a minor convenience at the surface level?" Because the template is already so coupled with the view logic that you might as well put them in the same place. And when we've reached that point, it make sense to make the template as legible as possible. Hence JSX. Also, no one is forcing you to have the JSX and views in the same file. You could have them be separate, with a different file prefix (.jsx) for the template and not break any existing tooling. And lastly, https://github.com/insin/msx (Mithril + JSX) is also a thing. |
|