From 63c02f62aa3c57f72602a9efe89dc0780d6d3079 Mon Sep 17 00:00:00 2001 From: Joseph Ditton Date: Sat, 20 Nov 2021 18:18:58 -0700 Subject: basic login boilerplatre --- client/app.jsx | 41 ++++++----------------------------------- 1 file changed, 6 insertions(+), 35 deletions(-) (limited to 'client/app.jsx') diff --git a/client/app.jsx b/client/app.jsx index 556623f..5ae62df 100644 --- a/client/app.jsx +++ b/client/app.jsx @@ -1,39 +1,10 @@ -import { useState } from 'react'; -import { setConstantValue } from 'typescript'; - -const App = () => { - const [email, setEmail] = useState(''); - const [password, setPassword] = useState(''); - - const submit = () => { - fetch('/sign_in', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ email, password }), - }); - }; +import { BrowserRouter } from 'react-router-dom'; +import { Router } from './components/router'; +export const App = () => { return ( - <> -
- setEmail(e.target.value)} - /> -
-
- setPassword(e.target.value)} - /> -
- - + + + ); }; - -export default App; -- cgit v1.2.3-70-g09d2