F
F
frontendo2018-08-18 20:32:51
React
frontendo, 2018-08-18 20:32:51

How to properly add HTML comments when developing with react.js?

There is a need to wrap a certain component (not just a string!!!) in a comment real html comments

<!--googleoff: all--><!--noindex--> <Component /> <!--/noindex--><!--googleon: all-->

type design
<Fragment dangerouslySetInnerHTML={{ html: `<!--googleoff: all--><!--noindex-->` }} />

does not work

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question