Convert HTML to React JSX: class to className, inline styles to objects, self-closing tags and comments. Optionally wrap it in a component.
Convert HTML to React JSX. Attributes are renamed (class → className, for → htmlFor), inline styles become objects, void tags self-close and comments become JSX comments.
They are wrapped in a fragment <>…</> so the result is valid JSX.
onclick becomes onClick, but the value stays a string. Replace it with a function in your component.
They are escaped as {'{'} and {'}'} so JSX does not treat them as expressions.