react-diff2
Advanced tools
+1
-1
@@ -51,3 +51,3 @@ (function (global, factory) { | ||
| 'span', | ||
| { key: index, style: spanStyle }, | ||
| { className: 'diff-result__line', key: index, style: spanStyle }, | ||
| part.value | ||
@@ -54,0 +54,0 @@ ); |
+1
-1
| { | ||
| "name": "react-diff2", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "description": "Highlights differences between to pieces of data.", | ||
@@ -5,0 +5,0 @@ "repository": { |
+1
-1
@@ -43,3 +43,3 @@ import React from 'react'; | ||
| return <span key={index} style={spanStyle}>{part.value}</span>; | ||
| return <span className="diff-result__line" key={index} style={spanStyle}>{part.value}</span>; | ||
| }); | ||
@@ -46,0 +46,0 @@ const className = props.className ? `diff-result ${props.className}` : 'diff-result'; |
8519
0.73%