kodyl / react-document-meta

HTML meta tags for React-based apps. Works for both client- and server-side rendering, and has a strict but flexible API.
MIT License
320 stars 23 forks source link

Suppress `data-rdm` attributes? #29

Closed mpelzsherman closed 8 years ago

mpelzsherman commented 8 years ago

Is there an option to suppress the data-rdm attributes added to each tag?

What is the purpose of these attributes?

(Thanks!)

danieljuhl commented 8 years ago

Currently no - but I do see the idea in removing, especially for server side rendering to static pages.

The reason to add data-rdm is that the <head> is manipulated outside of the react scope, so we need some way to be able to detect that they have been created using react-document-meta when the user navigates, and we need to create new meta tags in the <head>.

mpelzsherman commented 8 years ago

Thanks @danieljuhl. It's not a huge problem for us. Might be worth mentioning in the README though.

danieljuhl commented 8 years ago

Sure! 👍 I'm closing this... please re-open, if you have any more questions.