mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Update pass-server-data example [ci skip] (#4362)
* Update react, react-dom major version * Add license section to package.json * Use isomorphic-unfetch instead of isomorphic-fetch
This commit is contained in:
parent
4f59c95149
commit
8512bf49f7
|
@ -8,9 +8,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"express": "^4.14.0",
|
||||
"isomorphic-fetch": "^2.2.1",
|
||||
"isomorphic-unfetch": "^2.0.0",
|
||||
"next": "latest",
|
||||
"react": "^15.4.2",
|
||||
"react-dom": "^15.4.2"
|
||||
}
|
||||
"react": "^16.0.0",
|
||||
"react-dom": "^16.0.0"
|
||||
},
|
||||
"license": "ISC"
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {Component} from 'react'
|
||||
import Link from 'next/link'
|
||||
import fetch from 'isomorphic-fetch'
|
||||
import fetch from 'isomorphic-unfetch'
|
||||
|
||||
export default class extends Component {
|
||||
static async getInitialProps ({ req, query }) {
|
||||
|
|
Loading…
Reference in a new issue