Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by silverwind

10 months ago

JSX is good but still has room for improvement:

- Original HTML attribute names, `class` instead of `className`, `for` instead of `htmlFor`

- Let expressions and components return multiple elements without the need for `Fragment`.

Could make a JSX 2.0 which would be much closer to actual HTML.

1 comment

silverwind

Reply

chris_pie  10 months ago

attribute names depend on the implementation, Solid uses JSX and `class`

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities