Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.js #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
19 changes: 15 additions & 4 deletions 13-stripe-submenus/setup/src/index.js
Original file line number Diff line number Diff line change
@@ -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(
<React.StrictMode>
<App />
<App /> {/* The main application component */}
</React.StrictMode>
);