diff --git a/13-stripe-submenus/setup/src/index.js b/13-stripe-submenus/setup/src/index.js index ac166dbd0..42ae5bffb 100644 --- a/13-stripe-submenus/setup/src/index.js +++ b/13-stripe-submenus/setup/src/index.js @@ -1,10 +1,21 @@ -import React from 'react'; +// Import the React library to use its functionalities for building UI components +import React from 'react'; + +// Import the ReactDOM library for rendering React elements into the DOM import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App'; + +// Import the global CSS file for styling the application +import './index.css'; + +// Import the main App component, which serves as the root component for the application +import App from './App'; + +// Create a root object to target the HTML element with the id 'root' for rendering const root = ReactDOM.createRoot(document.getElementById('root')); + +// Render the App component within the root element inside React's StrictMode root.render( - + {/* The main application component */} );