Skip to content

Lesson 8#25

Open
shashanksingh2002 wants to merge 2 commits intomainfrom
lesson-8
Open

Lesson 8#25
shashanksingh2002 wants to merge 2 commits intomainfrom
lesson-8

Conversation

@shashanksingh2002
Copy link
Copy Markdown

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
Copy Markdown
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.

2 participants