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

Use React 18 #4

Open
Gilles57 opened this issue Mar 31, 2023 · 0 comments
Open

Use React 18 #4

Gilles57 opened this issue Mar 31, 2023 · 0 comments

Comments

@Gilles57
Copy link

Gilles57 commented Mar 31, 2023

For doing the compatibility with React 18, the index.js must be changed

import React from "react";
import "./styles/index.css";
import App from "./components/App";
import * as ReactDOMClient from "react-dom/client";

const container = document.getElementById("root");
const root = ReactDOMClient.createRoot(container);

root.render(<App tab="home" />);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant