We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4487f0c commit 93874eeCopy full SHA for 93874ee
src/pages/Events.jsx
@@ -6,7 +6,11 @@ function Events() {
6
const { data: events, error, loading } = useCallApi('dummyEvents.json');
7
8
if (loading) {
9
- return <p>Loading...</p>;
+ return (
10
+ <div className="spinner-border text-primary" role="status">
11
+ <span className="visually-hidden">Loading...</span>
12
+ </div>
13
+ );
14
}
15
16
if (error) {
0 commit comments