mirror of
https://github.com/michivonah/nextjs.git
synced 2025-12-22 22:16:28 +01:00
migrate react app to Next.js & document learnings
This commit is contained in:
parent
507b113ce9
commit
820ed27a47
8 changed files with 1013 additions and 0 deletions
|
|
@ -180,7 +180,22 @@ function HomePage(){
|
|||
}
|
||||
```
|
||||
|
||||
## Migrate project from React to Next.js
|
||||
Install React & Next.js
|
||||
```zsh
|
||||
npm install react@latest react-dom@latest next@latest
|
||||
```
|
||||
|
||||
Dependencies in package.json:
|
||||
```json
|
||||
{
|
||||
"dependencies": {
|
||||
"next": "^15.3.1",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Ressources
|
||||
- [React Foundations course from Next.js](https://nextjs.org/learn/react-foundations)
|
||||
Loading…
Add table
Add a link
Reference in a new issue