Skip to content

Commit 4a73ccb

Browse files
sakulstraarunoda
authored andcommitted
add react and react dom as peer (vercel#1024)
- tackles vercel#997 - add ./idea to gitignore for webstorm users - update all the examples
1 parent aa971d6 commit 4a73ccb

File tree

38 files changed

+114
-43
lines changed

38 files changed

+114
-43
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ npm-debug.log
1313
# coverage
1414
.nyc_output
1515
coverage
16+
17+
# editors
18+
.idea/*
19+
*.iml
20+
*.sublime-*

examples/basic-css/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"start": "next start"
88
},
99
"dependencies": {
10-
"next": "^2.0.0-beta"
10+
"next": "^2.0.0-beta",
11+
"react": "^15.4.2",
12+
"react-dom": "^15.4.2"
1113
},
1214
"author": "",
1315
"license": "ISC"

examples/custom-server-express/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
},
77
"dependencies": {
88
"express": "^4.14.0",
9-
"next": "^2.0.0-beta"
9+
"next": "^2.0.0-beta",
10+
"react": "^15.4.2",
11+
"react-dom": "^15.4.2"
1012
}
1113
}

examples/custom-server-hapi/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
},
77
"dependencies": {
88
"hapi": "^16.1.0",
9-
"next": "^2.0.0-beta"
9+
"next": "^2.0.0-beta",
10+
"react": "^15.4.2",
11+
"react-dom": "^15.4.2"
1012
}
1113
}

examples/custom-server-koa/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"dependencies": {
99
"koa": "^1.2.4",
1010
"koa-router": "^5.4.0",
11-
"next": "^2.0.0-beta"
11+
"next": "^2.0.0-beta",
12+
"react": "^15.4.2",
13+
"react-dom": "^15.4.2"
1214
}
1315
}

examples/custom-server/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
"start": "NODE_ENV=production node server.js"
66
},
77
"dependencies": {
8-
"next": "^2.0.0-beta"
8+
"next": "^2.0.0-beta",
9+
"react": "^15.4.2",
10+
"react-dom": "^15.4.2"
911
}
1012
}

examples/data-fetch/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
},
99
"dependencies": {
1010
"isomorphic-fetch": "^2.2.1",
11-
"next": "^2.0.0-beta"
11+
"next": "^2.0.0-beta",
12+
"react": "^15.4.2",
13+
"react-dom": "^15.4.2"
1214
},
1315
"author": "",
1416
"license": "ISC"

examples/head-elements/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"start": "next start"
88
},
99
"dependencies": {
10-
"next": "*"
10+
"next": "*",
11+
"react": "^15.4.2",
12+
"react-dom": "^15.4.2"
1113
},
1214
"author": "",
1315
"license": "ISC"

examples/hello-world/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"start": "next start"
88
},
99
"dependencies": {
10-
"next": "*"
10+
"next": "*",
11+
"react": "^15.4.2",
12+
"react-dom": "^15.4.2"
1113
},
1214
"author": "",
1315
"license": "ISC"

examples/layout-component/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"start": "next start"
88
},
99
"dependencies": {
10-
"next": "*"
10+
"next": "*",
11+
"react": "^15.4.2",
12+
"react-dom": "^15.4.2"
1113
},
1214
"author": "",
1315
"license": "ISC"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy