From d4121586cdc84634f5d7a05d79344e183a9df5c7 Mon Sep 17 00:00:00 2001 From: Mikayla Dobson Date: Sun, 29 May 2022 11:50:12 -0500 Subject: [PATCH] directory cleanup --- client/src/App.css | 28 ---------------------------- client/src/App.tsx | 41 ++++++++++++++--------------------------- client/src/logo.svg | 7 ------- 3 files changed, 14 insertions(+), 62 deletions(-) delete mode 100644 client/src/logo.svg diff --git a/client/src/App.css b/client/src/App.css index 8da3fde..5c26419 100644 --- a/client/src/App.css +++ b/client/src/App.css @@ -1,19 +1,4 @@ .App { - text-align: center; -} - -.App-logo { - height: 40vmin; - pointer-events: none; -} - -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } -} - -.App-header { background-color: #282c34; min-height: 100vh; display: flex; @@ -24,19 +9,6 @@ color: white; } -.App-link { - color: #61dafb; -} - -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -} - button { font-size: calc(10px + 2vmin); } diff --git a/client/src/App.tsx b/client/src/App.tsx index b79be54..a7a8af4 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -1,9 +1,7 @@ -import { useEffect, useState } from 'react' -import logo from './logo.svg' +import { useState } from 'react' import './App.css' function App() { - const [count, setCount] = useState(0) const [response, setResponse] = useState(undefined); type userInfo = { @@ -17,7 +15,6 @@ function App() { let serverCall = await fetch('http://localhost:8088/users') .then(res => res.json()); - console.log(serverCall); serverCall && setResponse(serverCall); } @@ -41,30 +38,20 @@ function App() { return (
-
- logo -

Hello Vite + React!

-

- -

+

Server response:

+
+ {response && response.map((field: userInfo) => { + return ( + <> +

{field.name}

+

{field.email}

+ + ) + })} +
-

Server response:

-
- {response && response.map((field: userInfo) => { - return ( - <> -

{field.name}

-

{field.email}

- - ) - })} -
- - - -
+ +
) } diff --git a/client/src/logo.svg b/client/src/logo.svg deleted file mode 100644 index 6b60c10..0000000 --- a/client/src/logo.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - -