title: Suggestion to refactor code into simple way -React
body: <p>I have multiple  with the same class name and method with different parameter
  i want to refactor the below code to a simpler way any suggestion would be helpful.</p>
  <pre><code>&lt;table class=&quot;greyGridTable&quot;&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;AA&lt;/td&gt;
        &lt;td className = 'table-container'&gt;{formatDate(someMethod1(param1,a)}&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;BB&lt;/td&gt;
        &lt;td className = 'table-container'&gt;{formatDate(someMethod1(param1,b)}&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;CC&lt;/td&gt;
        &lt;td className = 'table-container'&gt;{formatDate(someMethod1(param1,c)}&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  <p>I want to refactor the code with the same component.</p>