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:
yhirano55 2018-05-14 07:00:03 +09:00 committed by Tim Neutkens
parent 4f59c95149
commit 8512bf49f7
2 changed files with 6 additions and 5 deletions

View file

@ -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"
}

View file

@ -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 }) {