Next.js Discord

Discord Forum

What is the idiomatic way in Next.js 13 to load scripts and then having components act "onLoad"

Unanswered
Torymid wasp posted this in #help-forum
Open in Discord
Torymid waspOP
For instance, I have a script I want to load async in Head. Then, in some component it should have some default loading text, but be updated once onLoad fires. I have tried using useEffect but that does not work as my App is not entirely use client;

0 Replies