Skip to content

Conversation

@shashanksingh2002
Copy link

ReactDOM.render is not supported by React 18 .
It should be changed with ReactDOM.createRoot().render();

}

// render the component to the DOM
ReactDOM.render(<Banner />, document.getElementById('banner'))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not supported By react 18 should be chnaged to

ReactDOM.createRoot(document.getElementById('banner').render( <div> <p>banner</p> </div> );

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

Successfully merging this pull request may close these issues.

3 participants