Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

redirect route after registration on mysql by axios post method

    import { useNavigate } from 'react-router-dom';

    const navigate = useNavigate();

    const onSubmit = data => {
        axios.post('http://localhost:5001/insertInfo', data)
        navigate('/login');
     };
Comment

PREVIOUS NEXT
Code Example
Javascript :: get two-digit hex from number javascript 
Javascript :: angular declare variable in a file 
Javascript :: neo4j delete relationship nodes 
Javascript :: vim react snippets 
Javascript :: moment + 1 day 
Javascript :: fs move file 
Javascript :: adonis attach 
Javascript :: How to save input from box html 
Javascript :: scale text in div react 
Javascript :: javascript set localstorage 
Javascript :: react native portrait only 
Javascript :: javascript add spaces to string 
Javascript :: javascript replace string at position 
Javascript :: javascript redirect to relative url 
Javascript :: javascript redirect to a page 
Javascript :: disable right click using jquery 
Javascript :: function expression and function declaration 
Javascript :: jquery get data attribute of selected option 
Javascript :: js trigger mouseover 
Javascript :: do not trigger useeffect on start 
Javascript :: javascript copy an array 
Javascript :: give multiple classes in modular css react 
Javascript :: angular generate directive 
Javascript :: how to add another schema id on mongodb 
Javascript :: react native mac 
Javascript :: avascript sleep 1 second 
Javascript :: for array javascript 
Javascript :: js multiply string 
Javascript :: js check proccess alive 
Javascript :: javascript is JSON string valid 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =