Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well you might like Hyperscript or Elm, those are two approaches that work quite well using simple function calls.

The thing with JSX is introduces a syntax that is familiar to the rendered output (which is the status quo), and there's a relatively clear visual separation between the declarative and imperative parts; which is hard to enforce in pure JS.




The problem with JSX (and it's the same problem with all declarative languages) is you have no control over the control flow.


I'm struggling to think what kind of control flow you're looking for when specifying a document consisting of a tree of components. If all you want is a way to render one nodeset over a different nodeset at runtime then you can easily do that by setting that behavior in the relevant component.


That's because JSX doesn't concern itself with control flow; it's not its job. Your framework has that job.


No, that's my job.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: