From 39d5050c7d3055096e4b8fcce8b1ddb98a63b748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreu=20Vall=20Hern=C3=A0ndez?= Date: Wed, 8 Nov 2023 17:00:48 +0100 Subject: [PATCH] do i need to import React? --- package.json | 2 -- src/components/Signup.jsx | 3 +++ src/index.js | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6add840..5722c07 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,6 @@ "web-vitals": "^2.1.4" }, "scripts": { - "predeploy": "npm run build", - "deploy": "gh-pages -d build", "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", diff --git a/src/components/Signup.jsx b/src/components/Signup.jsx index 89fc181..250caf5 100644 --- a/src/components/Signup.jsx +++ b/src/components/Signup.jsx @@ -1,3 +1,6 @@ +import React, { useState } from "react"; +import { Link, useHistory, useNavigate } from "react-router-dom"; + /* //Logic packages import { useState } from "react"; diff --git a/src/index.js b/src/index.js index ff4665d..ad68979 100644 --- a/src/index.js +++ b/src/index.js @@ -21,7 +21,6 @@ root.render( } /> - } /> } /> } /> } />