Closed hanancs closed 3 years ago
According to NextJS documentation : Next Script
All you gotta do is,
<script dangerouslySetInnerHTML={{ __html: `new kursor({
type: 1
})` }} />
This works perfectly both in dev and prod...
Don't forget to add following code into Head tag
<link rel="stylesheet" href="https://unpkg.com/kursor/dist/kursor.css" />
<script src="https://cdn.jsdelivr.net/npm/kursor"></script>
I kept trying use it using next/script and other available methods, I couldn't figure it out. 🤔