Props in <Script>
There are the props available for the Script Component
- src: It is required prop in <Script> Component. This prop define the external javascript url.
- strategy: This prop allow you to control the behaviour of loading and executing the external script.
- onLoad: It is optional prop, It run when the external script finished the loading.
- onLoad: It is optional prop, This event code run after the script has finished loading and every time the when the component is mounted.
- onError: It is optional prop, This event occurs when your script fails to load.
Next.js Components : </h1></div>
Next JS is a React-based web framework that enables developers to build modern, dynamic web applications easily. Vercel developed it, and NextJS introduces a set of conventions and tools that streamline the developer process making it faster and more efficient.
This post will teach us about this project’s <Script> component.