1
0
Fork 0
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:
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": { "dependencies": {
"express": "^4.14.0", "express": "^4.14.0",
"isomorphic-fetch": "^2.2.1", "isomorphic-unfetch": "^2.0.0",
"next": "latest", "next": "latest",
"react": "^15.4.2", "react": "^16.0.0",
"react-dom": "^15.4.2" "react-dom": "^16.0.0"
} },
"license": "ISC"
} }

View file

@ -1,6 +1,6 @@
import {Component} from 'react' import {Component} from 'react'
import Link from 'next/link' import Link from 'next/link'
import fetch from 'isomorphic-fetch' import fetch from 'isomorphic-unfetch'
export default class extends Component { export default class extends Component {
static async getInitialProps ({ req, query }) { static async getInitialProps ({ req, query }) {