skip to Main Content

Reactjs – My handleLogin functon is not getting triggered after I press the login button?

const [showRegister, setShowRegister] = useState(false); const { register, handleSubmit, formState: { errors }, reset, } = useForm<FormSchemaType>({ resolver: zodResolver(formSchema), }); const handleFormSubmit: SubmitHandler<FormSchemaType> = (data) => { console.log("hello world"); if (showRegister === true) { handleRegister(data); console.log("registering data"); } else {…

VIEW QUESTION

Reactjs – React Button Disable

Can I disable Button in react when login user is member.I waant to disable without using disabled attribute.When I used disabled attribute,it can delete from developer tools and button is active again.Please help me I want button is disable when…

VIEW QUESTION
Back To Top
Search