react router dom refresh page code example
Example 1: how to refresh the page using react
window.location.reload(false);
Example 2: react router refresh page
location.reload();
Example 3: react router refreshes page
import React from "react";
import { Link } from 'react-router-dom';
export class ToolTip extends React.Component {
render() {
return (
<Link to="/My/Route">Click Here</Link>
)
}
};