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

Add support for React 18 features #307

Open
rao123dk opened this issue Mar 30, 2022 · 0 comments
Open

Add support for React 18 features #307

rao123dk opened this issue Mar 30, 2022 · 0 comments

Comments

@rao123dk
Copy link

Possible Add

  • Updates to Client Rendering API (React 18)
// Before
import { render } from 'react-dom';
const container = document.getElementById('app');
render(<App tab="home" />, container);
// After
import { createRoot } from 'react-dom/client';
const container = document.getElementById('app');
const root = createRoot(container);
root.render(<App tab="home" />);

Note:- Its is useful for someone who is following micro-frontend architecture.

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