You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to migrate to react-head I noticed react-helmets and I'm not sure if current react-head can do this already?
If yes I would like some help, if not might this be integrated some day or should I handle it differently?
By the way, the lang attribute is still relevant as far as I can tell right?
edit: should have mentioned that I have actually multiple languages, so it's not about a static declaration but about a dynamic one based on props
maybe I just update it using plain js?
The text was updated successfully, but these errors were encountered:
If I understand your question correctly, right now react-head is meant to be used to add/update/remove HTML tags within the <head /> tag, and not for updating the <html /> tag itself. I think using plain JS to update the attributes on <html /> make the most sense for now.
I would be open to reviewing a PR that adds support for updating attributes for body, html and title tags for feature parity with react-helmet.
While trying to migrate to react-head I noticed react-helmets and I'm not sure if current react-head can do this already?
If yes I would like some help, if not might this be integrated some day or should I handle it differently?
By the way, the lang attribute is still relevant as far as I can tell right?
edit: should have mentioned that I have actually multiple languages, so it's not about a static declaration but about a dynamic one based on props
maybe I just update it using plain js?
The text was updated successfully, but these errors were encountered: