How to reload page in react js?




Hello Guys,

If you have question how to reload current page then you can show this demo. this first way to refresh component or page use javascript location reload method. in this demo i will show you reload current page onclick button. refresh react component using reload method.

If you have question How to refresh page on button click in react js then follow this tutorial. also refresh page after submit form. In react refresh page without reload using this demo.


import React from 'react'

class Reload extends React.Component{

function refreshPage() {






<button onClick={refreshPage}>Click to reload!</button>





export default Reload;

I hope it can help you...