I want to add script to Qwik's root.tsx
file. I tried:
<script>
const globalFunction = (parameter) => console.log('hi')
</script>
But this can not be compiled.
I changed it to become similar to Next.js:
<script>
{
`const globalFunction = (parameter) => console.log('hi')`
}
</script>
But I saw that the =>
arrow function is rendered as =>
How can I write literal script in Qwik?