import { useNavigate } from 'react-router-dom'
const navigate = useNavigate()
navigate('/sign-in', { replace: true })
Using replace true, the browser not allow back to back page after to navigate to sign-in route, how the example.
import { useNavigate } from 'react-router-dom'
const navigate = useNavigate()
navigate('/sign-in', { replace: true })
Using replace true, the browser not allow back to back page after to navigate to sign-in route, how the example.
For further actions, you may consider blocking this person and/or reporting abuse
abhilaksh-arora -
Scofield Idehen -
IamThiago-IT -
Shrijal Acharya -
Top comments (0)