skip to Main Content

Reactjs – Connecting Back-end to Front-end

import React from "react"; import client from "../../apis/client"; export default function SignUp() { const handleSignup = async (event) => { event.preventDefault(); const username = document.getElementById('username').value; const email = document.getElementById('email').value; const password = document.getElementById('password').value; const userData = { username, email, password…

VIEW QUESTION

React Toast When navigate – Javascript

try{ const user = await createUserWithEmailAndPassword(auth, email, password) console.log(user); navigate('/login'); toast.success('Registered Successfully'); } catch(error){ console.log(error); } I'm trying to display toast message after navigates to login page. But I didn't getting any toast notification after redirecting to login page. Plase…

VIEW QUESTION
Back To Top
Search