Outdated Learn Page
Answered
Channel catfish posted this in #help-forum
Channel catfishOP
On this page https://nextjs.org/learn/foundations/from-javascript-to-react/getting-started-with-react it is still using older Version, on chrome Console i am getting Warning! Please provide me upgraded code
12 Replies
you've to go through docs to learn
Answer
@@ts-ignore you've to go through docs to learn
Channel catfishOP
can help me upgrade this code
const app = document.getElementById('app');
ReactDOM.render(<h1>Created using React</h1>,app);
const app = document.getElementById('app');
ReactDOM.render(<h1>Created using React</h1>,app);
@@ts-ignore https://nextjs.org/docs/app/building-your-application/upgrading/from-vite this should help
Channel catfishOP
Whats a Vite lol
@Channel catfish Whats a Vite lol
its a build tool
@@ts-ignore https://nextjs.org/docs/app/building-your-application/upgrading/codemods#migrate-from-cra
Channel catfishOP
am just a beginner bro. these links are so confusing right now
@Channel catfish can help me upgrade this code
const app = document.getElementById('app');
ReactDOM.render(<h1>Created using React</h1>,app);
European sprat
This indicated you have an existing react app so he was sharing docs about migrating from that
@European sprat This indicated you have an existing react app so he was sharing docs about migrating from that
Channel catfishOP
oh i see 😆
European sprat
If you're starting fresh and learning nextjs, read the docs https://nextjs.org/docs
/learn is being updated