Preferences

No. You're thinking of how React uses it.

The library [0] I wrote that uses JSX converts expression attributes into parameter-less lambdas before providing them as function parameters or object properties. This is a different behavior than react's build tools or any of typescripts jsx options. But it's not inconsistent with the spec.

[0] https://mutraction.dev/


More libraries than React work just fine with the existing Babel and/or Typescript JSX options. snabbdom is a big one to mind that isn't React/Preact, but there are plenty more.

The space that the Babel/Typescript JSX options describe is a constructive space for more than just React.

This item has no comments currently.

Keyboard Shortcuts

Story Lists

j
Next story
k
Previous story
Shift+j
Last story
Shift+k
First story
o Enter
Go to story URL
c
Go to comments
u
Go to author

Navigation

Shift+t
Go to top stories
Shift+n
Go to new stories
Shift+b
Go to best stories
Shift+a
Go to Ask HN
Shift+s
Go to Show HN

Miscellaneous

?
Show this modal