From 8647b02d4739f6d3e3131c17b5887aef9c6e3f1d Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 10 Jul 2019 11:04:31 -0400 Subject: [PATCH] Upgraded React versions --- app/static/app/js/components/Standby.jsx | 5 ++++- package.json | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/static/app/js/components/Standby.jsx b/app/static/app/js/components/Standby.jsx index e58591fc..76833c5c 100644 --- a/app/static/app/js/components/Standby.jsx +++ b/app/static/app/js/components/Standby.jsx @@ -16,7 +16,10 @@ class Standby extends React.Component { constructor(props){ super(props); - this.state = props; + this.state = { + message: props.message, + show: props.show + }; } componentWillReceiveProps(nextProps){ diff --git a/package.json b/package.json index 6b37b041..89637bc6 100644 --- a/package.json +++ b/package.json @@ -51,8 +51,8 @@ "proj4": "^2.4.3", "qrcode.react": "^0.7.2", "raw-loader": "^0.5.1", - "react": "^16.2.0", - "react-dom": "^16.2.0", + "react": "^16.4.0", + "react-dom": "^16.4.0", "react-router": "^4.1.1", "react-router-dom": "^4.1.1", "react-test-renderer": "^15.6.1",