Created
January 22, 2024 14:32
-
-
Save ReyRod/0e2d58c3f7faac238042a8c4d734f7d3 to your computer and use it in GitHub Desktop.
Example 3 - Loading State
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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