Better handling of react app
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
import React from 'react';
|
||||
import {createRoot} from 'react-dom/client';
|
||||
import './App.css';
|
||||
import App from './App';
|
||||
import React from "react";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import App from "./App";
|
||||
import "./index.css"; // optional – keep CRA default styling
|
||||
|
||||
const root = createRoot(document.getElementById('root'));
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
);
|
||||
const container = document.getElementById("root");
|
||||
createRoot(container).render(<App />);
|
||||
Reference in New Issue
Block a user