Skip to main content
Code fences
Source Link
Joundill
  • 7.8k
  • 13
  • 40
  • 54

import { useNavigate } from "react-router-dom"; import { Button } from "@mui/material";

const component =()=>{

const navigate = useNavigate();

const handelGoToLogin = () => {
    navigate('/auth/login')
}

return(<> //.........

Back

</>)

}

import { useNavigate } from "react-router-dom";
import { Button } from "@mui/material";

const component =()=>{

    const navigate = useNavigate();

    const handelGoToLogin = () => {
        navigate('/auth/login')
    }

    return(<>
        //.........
    
        <Button onClick={handelGoToLogin} variant="outlined" color="primary" size="large" fullWidth>
             Back
        </Button>

    </>)
}

import { useNavigate } from "react-router-dom"; import { Button } from "@mui/material";

const component =()=>{

const navigate = useNavigate();

const handelGoToLogin = () => {
    navigate('/auth/login')
}

return(<> //.........

Back

</>)

}

import { useNavigate } from "react-router-dom";
import { Button } from "@mui/material";

const component =()=>{

    const navigate = useNavigate();

    const handelGoToLogin = () => {
        navigate('/auth/login')
    }

    return(<>
        //.........
    
        <Button onClick={handelGoToLogin} variant="outlined" color="primary" size="large" fullWidth>
             Back
        </Button>

    </>)
}
added 13 characters in body
Source Link

import { useNavigate } from "react-router-dom"; import { Button } from "@mui/material";

const component =()=>{

const navigate = useNavigate();

const handelGoToLogin = () => {
    navigate('/auth/login')
}

return(<> //...... Back <...

Back

</>)

}

import { useNavigate } from "react-router-dom"; import { Button } from "@mui/material";

const component =()=>{

const navigate = useNavigate();

const handelGoToLogin = () => {
    navigate('/auth/login')
}

return(<> ...... Back </>)

}

import { useNavigate } from "react-router-dom"; import { Button } from "@mui/material";

const component =()=>{

const navigate = useNavigate();

const handelGoToLogin = () => {
    navigate('/auth/login')
}

return(<> //.........

Back

</>)

}

Source Link

import { useNavigate } from "react-router-dom"; import { Button } from "@mui/material";

const component =()=>{

const navigate = useNavigate();

const handelGoToLogin = () => {
    navigate('/auth/login')
}

return(<> ...... Back </>)

}