Question to #React experts. Where is the problem if the htmlFor attribute (the one used for <label> instead of the "for" attribute to avoid keyword conflicts) — this attribute remains "htmlFor" in the rendered code, not converting to "for"? Like, in the browser dev tools it shows: <label htmlfor="">.
My first idea was wrong casing (htmlFor vs. htmlfor), but I have almost no knowledge in React, so any help is appreciated. #JavaScript #accessibility
My first idea was wrong casing (htmlFor vs. htmlfor), but I have almost no knowledge in React, so any help is appreciated. #JavaScript #accessibility
Kirill
in reply to André Polykanine • • •const someElement = '<h2>Bububu</h2>'
А надо:
const someElement = <h2>Bububu</h2>