set a refresher on web page react code example
Example 1: how to refresh the page using react
window.location.reload(false);
Example 2: react router refresh page
`yarn add react-router` or `npm install react-router`
import { useHistory } from 'react-router'
const history = useHistory()
history.go(0)