Inside React component there are two html elements, for example:

```
<h5 style={{color:'red'}}>Hello World</h5>

```

and

```
<h5 style={{color:'#ff0000'}}>Hello World</h5>

```

They both give the h5 with red text "Hello World" - (#ff0000 is the hex value of color red).

Now I have to compare them, to see if their output is the same.

EDIT:
Also, it is not just about style comparison, but full html output, 
for example this two should return true when compared:

```
<h5 style={{color:'red'}}>Hello World</h5>
<h5 style={{color:'#ff0000'}}>Hello World</h5>

```

but these two should return false because their tags are different:

```
<h5 style={{color:'red'}}>Hello World</h5>
<h4 style={{color:'red'}}>Hello World</h4>

```

Any help?
Can you suggest me some react package for that?

Thx in advance