diff --git a/src/pages/Signup.js b/src/pages/Signup.js index b23b0b1..545bc2d 100644 --- a/src/pages/Signup.js +++ b/src/pages/Signup.js @@ -16,10 +16,13 @@ export function Signup ( props ) { } useEffect( () => { - if(username.length > 4) { - console.log("longer than 4 characters") + if(username.length >= 4) { + setValidusername(true) } - }, [username] ) + else { + setValidusername(false) + } + }, [username] ) return ( @@ -38,11 +41,21 @@ export function Signup ( props ) { Email - + setUseremail(evt.target.value) } + /> Password - + setUserpassword(evt.target.value) } + />