Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
crazypython
· 5y ago · 0 comments
Note that HTML allows you to avoid quoting parameters to make them easier to type:
<html lang=en class=no-js>
This is a feature React lacks.
Comments
[–]
xixixao
5y ago
In JSX it wouldn’t be obvious whether “en” is a variable/literal or a string.
[–]
postalrat
5y ago
It's always a string unless it's in a {} pair. So if < lang=en > it would always be a string.