Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const [isLoading, setIsLoading] = useState(true);
- setTitle(wait);
- setIsLoading(false);
- { isLoading ? (
- <p>Loading ...</p>
- ) : (
- <div>
- <div style={{ height: 20 }}>{title}</div>
- <div style={{ display: "flex" }}>
- <Tile color="#4caf50" />
- <Tile color="#f44336" />
- <Tile color="#3f51b5" />
- <Tile color="#ffc107" />
- </div>
- </div>
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement