Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 23-quiz/setup/src/Loading.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
// Importing the React library to create and manage the component
import React from 'react'

// Defining the Loading functional component
const Loading = () => {
return (
// Main container for the loading component
<main>
{/* Div with a className 'loading', typically styled to display a loading animation */}
<div className='loading'></div>
</main>
)
}

// Exporting the Loading component for use in other parts of the application
export default Loading