Nice, the problem with this approach though is that you're forced to "use client" on layout losing all the benefits of server components Instead you can put this in a component and import it in layout or wherever you want, also you don't need to put Script inside the head
Perfect 👍 this is what I was looking for
hey man do you think you could update the github link? I think it's down, can't clone it
Nice, the problem with this approach though is that you're forced to "use client" on layout losing all the benefits of server components
Instead you can put this in a component and import it in layout or wherever you want, also you don't need to put Script inside the head
True words ! Thanks, but what is the benefit of placing the script into the body ?
I think it's only for performance@@J-HAYER
It's a Next message called "no-script-tags-in-head-component"