/*import React from "react";
import ReactDOM from "react-dom";
import App from "./components/App";
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
);
*/
import React from "react";
import ReactDOM from "react-dom";
import App from "./components/App";
/**
* Renders the main React application.
* @function
* @name renderApp
* @param {JSX.Element} appComponent - The main application component.
* @param {HTMLElement} targetElement - The HTML element where the application should be rendered.
*/
const renderApp = (appComponent, targetElement) => {
ReactDOM.render(
<React.StrictMode>{appComponent}</React.StrictMode>,
targetElement
);
};
// Call the renderApp function with the main App component and the root HTML element.
renderApp(<App />, document.getElementById("root"));