How can I add an attribute to html element in React js. I want to set <html lang="en">
to solve WCAG Level A validation issue.
I added html-element-attributes module but no idea about how to use it.
Anybody please help to get a way to add this lang attribute to html element?
you need React helmet for this. Put this block in any top level component's render:
<Helmet>
<html lang="en" />
</Helmet>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With