Skip to content

Instantly share code, notes, and snippets.

@ReyRod
Created January 22, 2024 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReyRod/0e2d58c3f7faac238042a8c4d734f7d3 to your computer and use it in GitHub Desktop.
Save ReyRod/0e2d58c3f7faac238042a8c4d734f7d3 to your computer and use it in GitHub Desktop.
Example 3 - Loading State
import MovieListSkeleton from "@/components/MovieListSkeleton";
export default async function Loading() {
return (
<div className="flex flex-col md:flex-row justify-between items-center w-screen h-screen p-10 gap-10">
<div className="flex flex-col w-full md:w-1/2 h-full">
<MovieListSkeleton />
</div>
<div className="flex flex-col w-full md:w-1/2 h-full">
<MovieListSkeleton />
</div>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment