otakustay/react-diff-view

Add more examples how to use lib

Vanish404 opened this issue · 5 comments

Unfortunately, I didn't fully get the idea on how to use the library. How I can build something similar that I can see on the screenshots? Initially, when I went through the documentation I would be say that is possible, but when I try to build the POC I understand that is not possible to create something similar that I can see on the screenshoots, for example I didn't find filename and icons header for each file. I understand that I can create it by using Decorators, but it would be good to have it inside "black box".

Also site isn't working for diff text visualization. I tried to do it locally and on the github pages.

For some basic use you can now refer to these sandboxes, I'll update docs later:

For the diff text visualization problem, could you provide the text you paste into the textbox?

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I think this should be reopened. In my use case, I'm starting with two strings, not a diff. I had a lot of difficulty generating the diff in the correct format. These examples would have helped.

Reopen this for a planned document improvement

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.