Coding task · Next.js course · Module 2: Routing and Layouts
Practice: Loading UI
Create a loading UI
Task
Create a loading.js file with a default-exported Loading component that displays the text “Loading...” (you can add a spinner next to it, e.g. a div with the spinner class).