Redux simple diff example http://react-redux-diff.herokuapp.com/
The result of program is show the difference between the files. The format of result is shown below. For example:
Some
Simple
Text
File
Another
Text
File
With
Additional
Lines
- '*' Some|Another
- '-' Simple
-
Text
-
File
- '+' With
- '+' Additional
- '+' Lines
- '*' in case if line has changed
- '–' in case line exists in the first file but does not exist in the second one
- '+' in case line does not exist in the first file but exists in the second one
- Nothing if line has not changed.
- Line content from the first file | line content from the second file
- If line exists in the first file but is missing in the second file – show the line content
- If the line is added in the second file – show the line content