Is there any way to add IE conditional comments to <head> tag?
idk if this'll help but
https://blog.logrocket.com/conditional-rendering-in-react-c6b0e5af381e
and if you meant internet explorer you can use this
if (navigator.userAgent.indexOf('Trident') > -1) {
//do stuff
}
idk if this'll help but
https://blog.logrocket.com/conditional-rendering-in-react-c6b0e5af381e
Actually the problem is that I want to add something like this to the head in SSR:
<!--[if lt IE 9]>
<script type="text/javascript" src="..."></script>
<![endif]-->
But I can't just add a comment inside Helmet tag to add it to head :(
I have the same issue than you @tiagonapoli and no solution 馃槩 Maybe it's an issue with React.
Most helpful comment
Actually the problem is that I want to add something like this to the head in SSR:
But I can't just add a comment inside Helmet tag to add it to head :(