Commit 8512bf49 authored by yhirano55's avatar yhirano55 Committed by Tim Neutkens

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
parent 4f59c951
......@@ -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"
}
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 }) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment