3 ms·
This is a good read for JS developers. TL;DR: they’re not the same thing. Only sometimes they match (e.g. `id`) but often they don’t. Something fun: JSX does
by fregante 2y ago
This is a good read for JS developers.
TL;DR: they’re not the same thing. Only sometimes they match (e.g. `id`) but often they don’t.
Something fun: JSX does not use attributes, even if they look like it. That’s why they have unusual naming/formatting (`htmlFor` and `className`)