Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-code-compare

tknickman13.2kMIT1.1.2TypeScript support: included

A simple and fast text diff viewer component

review, code-review, diff, diff-viewer, github, react, react-component, react-hooks, virtual, ui

readme

react-code-compare

A fork of @praneshr's awesome react-diff-viewer. Adds:

  1. Virtual table renderer for large diffs (using @tanstack/react-virtual)
  2. React hooks and context API to allow for more flexible rendering and control

Install

pnpm install react-code-compare

License

MIT