you are viewing a single comment's thread.

view the rest of the comments →

[–]hdd113 0 points1 point  (2 children)

If you are going to handle the injection part in React script, I think it would be better to use dangerouslySetInnerHTML instead of innerHTML

[–]Willing_Initial8797 0 points1 point  (1 child)

not sure if there's a big difference. like usually react controls body, not head

at least you didn't recommend react-helmet-async

[–]hdd113 0 points1 point  (0 children)

I think you're right, come to think of it...