insin/babel-plugin-react-html-attrs
View on GitHub ↗ ★ 176 JavaScript
Babel plugin which transforms HTML and SVG attributes on JSX host elements into React-compatible attributes
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2017-04-24 · latest 2020-05-14
20082026
-
…plugin I had written to do basic class → className and for → htmlFor transforms on JSX attributes: https://github.com/insin/babel-plugin-react-html-attrs It now lets you use _all_ HTML attributes on host elements in JSX, and I ended up…
comment by insin · 2020-05-14 · in Ask HN: What's your quarantine side project? -
…illa.org/en-US/docs/Web/API/HTMLLabelEl... If you really dislike it, you can still use class and for: https://github.com/insin/babel-plugin-react-html-attrs > or I would be able to write a simple if-else statement {} evaluates to a…
comment by mlsarecmg · 2018-01-22 · in Guide to JavaScript Frameworks -
…to address the class/className issue addressed in the author's last point. [1] https://github.com/insin/babel-plugin-react-html-attrs
comment by andrethegiant · 2017-04-24 · in A response to “An experienced JavaScript dev’s account of learning React”