From a635513d66fd4d2c605a0e64b4fa94828c64610e Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sun, 10 May 2020 16:33:00 -0700 Subject: linked backend and frontend --- frontend/package.json | 1 + frontend/src/components/Inputs.js | 1 + frontend/src/components/PasteArea.js | 54 +++++++++++++++++++++++++++++++++--- 3 files changed, 52 insertions(+), 4 deletions(-) (limited to 'frontend') diff --git a/frontend/package.json b/frontend/package.json index 26a63d5..d32e1cc 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,6 +6,7 @@ "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", + "axios": "^0.19.2", "d3-scale": "^3.2.1", "rc-slider": "^9.2.4", "react": "^16.13.1", diff --git a/frontend/src/components/Inputs.js b/frontend/src/components/Inputs.js index aa68a70..110d5bd 100644 --- a/frontend/src/components/Inputs.js +++ b/frontend/src/components/Inputs.js @@ -52,6 +52,7 @@ class PasteInput extends React.Component { placeholder="Paste your text here" value={this.props.content} id={this.props.id} + required onChange={this.props.onChange} className="lt-shadow" />