From adf751287178cae24a392b88c479ad800aed24d0 Mon Sep 17 00:00:00 2001 From: Sumanth U <157620444+Sumanth077s@users.noreply.github.com> Date: Tue, 3 Dec 2024 05:01:04 +0530 Subject: [PATCH] Update index.js --- 23-quiz/final/src/index.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/23-quiz/final/src/index.js b/23-quiz/final/src/index.js index 6c2e01ecc..6b59ec793 100644 --- a/23-quiz/final/src/index.js +++ b/23-quiz/final/src/index.js @@ -1,15 +1,26 @@ +// Importing React library for creating components import React from 'react'; + +// Importing ReactDOM to handle rendering React components to the DOM import ReactDOM from 'react-dom/client'; + +// Importing the CSS file for styling the application import './index.css'; + +// Importing the main App component import App from './App'; + +// Importing AppProvider, which provides global context to the application import { AppProvider } from './context'; +// Creating a root DOM node where the React application will be rendered const root = ReactDOM.createRoot(document.getElementById('root')); +// Rendering the React application to the root element root.render( - - - + {/* Enables additional checks and warnings in development mode */} + {/* Wrapping the App component with AppProvider to enable global state management */} + {/* Rendering the main App component */} );