title: Compare two html element in React.js
body: <p>Inside React component there are two html elements, for example:</p>
  
  <pre><code>&lt;h5 style={{color:'red'}}&gt;Hello World&lt;/h5&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;h5 style={{color:'#ff0000'}}&gt;Hello World&lt;/h5&gt;
  </code></pre>
  
  <p>They both give the h5 with red text "Hello World" - (#ff0000 is the hex value of color red).</p>
  
  <p>Now I have to compare them, to see if their output is the same.</p>
  
  <p>EDIT:
  Also, it is not just about style comparison, but full html output, 
  for example this two should return true when compared:</p>
  
  <pre><code>&lt;h5 style={{color:'red'}}&gt;Hello World&lt;/h5&gt;
  &lt;h5 style={{color:'#ff0000'}}&gt;Hello World&lt;/h5&gt;
  </code></pre>
  
  <p>but these two should return false because their tags are different:</p>
  
  <pre><code>&lt;h5 style={{color:'red'}}&gt;Hello World&lt;/h5&gt;
  &lt;h4 style={{color:'red'}}&gt;Hello World&lt;/h4&gt;
  </code></pre>
  
  <p>Any help?
  Can you suggest me some react package for that?</p>
  
  <p>Thx in advance</p>