MrWangJustToDo / git-diff-view

A Diff View component for React / Vue, just like Github
https://mrwangjusttodo.github.io/git-diff-view/
MIT License
335 stars 11 forks source link

Show initialization code for examples? #8

Open danenania opened 1 month ago

danenania commented 1 month ago

This looks like a great project! Thank you!

It would be helpful if the example/playground pages would show the code to create a component that matches the example.

I'm trying to figure out how to render a git diff output string in React like this example and it's not too obvious to me how to do it. It would be nice if I could just copy the component code directly from that page.