Answers for "how to refresh the page using react"

12

how to refresh the page using react

window.location.reload(false);
Posted by: Guest on February-24-2020
0

react router refresh page

`yarn add react-router` or `npm install react-router`

import { useHistory } from 'react-router'
const history = useHistory()
history.go(0)
Posted by: Guest on April-07-2021
12

how to refresh the page using react

window.location.reload(false);
Posted by: Guest on February-24-2020
0

react router refresh page

`yarn add react-router` or `npm install react-router`

import { useHistory } from 'react-router'
const history = useHistory()
history.go(0)
Posted by: Guest on April-07-2021

Code answers related to "how to refresh the page using react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language