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

Part 1 courseinfo example solution for index.js outdated #3640

Open
virhe opened this issue May 28, 2024 · 0 comments
Open

Part 1 courseinfo example solution for index.js outdated #3640

virhe opened this issue May 28, 2024 · 0 comments

Comments

@virhe
Copy link
Contributor

virhe commented May 28, 2024

The example index.js solution given for the courseinfo task uses deprecated React features.

import ReactDOM from 'react-dom'
import App from './App'

ReactDOM.render(
  <App />, 
  document.getElementById('root')
)

should be

import ReactDOM from 'react-dom/client'
import App from './App'

ReactDOM.createRoot(document.getElementById('root')).render(<App />)
@virhe virhe changed the title Part 1 course info Part 1 courseinfo example solution for index.js outdated May 28, 2024
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