title: How to reload a component (part of page) in reactjs?
body: <p>I was working on react project. I was trying to reload a component when we click the reload button. I implemented the onClick function as given below. But it is reloading the whole window. I just want to reload only that class component, not the whole window. Can anyone help me to solve this?</p>
  
  <pre><code>refreshPage() {
      window.location.reload();
    }
  </code></pre>