🌐
npm
npmjs.com › package › react-diff-view
react-diff-view - npm
July 24, 2025 - A git diff component to consume the git unified diff output.. Latest version: 3.3.2, last published: 8 months ago. Start using react-diff-view in your project by running `npm i react-diff-view`. There are 52 other projects in the npm registry using react-diff-view.
      » npm install react-diff-view
    
Published   Jul 24, 2025
Version   3.3.2
Author   otakustay
🌐
npm
npmjs.com › package › react-diff-viewer
react-diff-viewer - npm
May 22, 2020 - A simple and beautiful text diff viewer component made with diff and React. Latest version: 3.1.1, last published: 6 years ago. Start using react-diff-viewer in your project by running `npm i react-diff-viewer`. There are 51 other projects in ...
      » npm install react-diff-viewer
    
Published   May 22, 2020
Version   3.1.1
Author   Pranesh Ravi
🌐
npm
npmjs.com › package › react-diff
react-diff - npm
October 12, 2016 - Highlight differences between inputs. Latest version: 0.0.7, last published: 9 years ago. Start using react-diff in your project by running `npm i react-diff`. There are 2 other projects in the npm registry using react-diff.
      » npm install react-diff
    
Published   Oct 12, 2016
Version   0.0.7
Author   Cezary Wojtkowski
🌐
npm
npmjs.com › package › react-diff-viewer-continued
react-diff-viewer-continued - npm
Generic text diff algorithms (like CHARS or WORDS) compare files character-by-character using the Myers diff algorithm, which has O(ND) complexity where N is the file size and D is the number of differences. For large JSON/YAML files (thousands of lines), this can take several seconds or even freeze the browser. ... This reduces comparison time from seconds to milliseconds for typical configuration files. import React from 'react'; import ReactDiffViewer, { DiffMethod } from 'react-diff-viewer-continued'; // For JSON - can pass objects directly const oldJson = { name: "Original", items: [1, 2,
      » npm install react-diff-viewer-continued
    
🌐
npm
npmjs.com › package › @git-diff-view › react
@git-diff-view/react - npm
January 8, 2026 - import { DiffView, DiffModeEnum } from "@git-diff-view/react"; import "@git-diff-view/react/styles/diff-view.css"; function MyDiffView() { return ( <DiffView data={{ oldFile: { fileName: "old.ts", content: "..." }, newFile: { fileName: "new.ts", content: "..." }, hunks: ["..."] }} diffViewMode={DiffModeEnum.Split} diffViewTheme="dark" diffViewHighlight /> ); }
      » npm install @git-diff-view/react
    
Published   Feb 26, 2026
Version   0.0.40
Author   MrWangJustToDo
🌐
GitHub
github.com › praneshr › react-diff-viewer
GitHub - praneshr/react-diff-viewer: A simple and beautiful text diff viewer component made with Diff and React.
Inspired from Github diff viewer, it includes features like split view, inline view, word diff, line highlight and more. It is highly customizable and it supports almost all languages.
Starred by 1.6K users
Forked by 309 users
Languages   TypeScript 96.3% | JavaScript 3.1% | Shell 0.6% | TypeScript 96.3% | JavaScript 3.1% | Shell 0.6%
🌐
npm
npmjs.com › package › @alexbruf › react-diff-viewer
@alexbruf/react-diff-viewer - npm
April 30, 2025 - A simple and beautiful text diff viewer component made with diff and React. Latest version: 3.1.5, last published: 10 months ago. Start using @alexbruf/react-diff-viewer in your project by running `npm i @alexbruf/react-diff-viewer`. There are 4 other projects in the npm registry using @alexbruf/react-diff-viewer.
      » npm install @alexbruf/react-diff-viewer
    
Published   Apr 30, 2025
Version   3.1.5
Author   Alex Brufsky
🌐
npm
npmjs.com › package › @mutefire › react-diff-viewer
@mutefire/react-diff-viewer - npm
Start using @mutefire/react-diff-viewer in your project by running `npm i @mutefire/react-diff-viewer`. There are no other projects in the npm registry using @mutefire/react-diff-viewer.
      » npm install @mutefire/react-diff-viewer
    
Published   Jan 16, 2023
Version   4.0.3
Author   Pranesh Ravi
Find elsewhere
🌐
npm
npmjs.com › package › react-gh-like-diff
react-gh-like-diff - npm
May 3, 2020 - Latest version: 2.0.2, last published: 6 years ago. Start using react-gh-like-diff in your project by running `npm i react-gh-like-diff`. There are 5 other projects in the npm registry using react-gh-like-diff.
      » npm install react-gh-like-diff
    
Published   May 03, 2020
Version   2.0.2
Author   Peng-Jie
🌐
GitHub
github.com › otakustay › react-diff-view
GitHub - otakustay/react-diff-view: A git diff component · GitHub
A bunch of utility function to manipulate diff structure if source text is provided. Run npm start to enjoy a full featured demo with diff display, collapsed code expansion, code comment and large diff lazy load.
Starred by 988 users
Forked by 89 users
Languages   TypeScript 92.9% | Less 3.7% | CSS 2.1% | JavaScript 1.1% | Shell 0.2%
🌐
GitHub
github.com › cezary › react-diff
GitHub - cezary/react-diff: Given two inputs, highlights the differences
Highlights differences between two strings, uses the diff module ... var React = require('react'); var Diff = require('react-diff'); var Component = React.createClass({ render: function() { return ( <Diff inputA="gogol" inputB="google" type="chars" ...
Starred by 124 users
Forked by 38 users
🌐
GitHub
github.com › MrWangJustToDo › git-diff-view
GitHub - MrWangJustToDo/git-diff-view: A Diff View component for React / Vue / Solid / Svelte / Ink, same as Github · GitHub
git clone https://github.com/MrWangJustToDo/git-diff-view.git cd git-diff-view pnpm install pnpm run build:packages pnpm run dev:react # or dev:vue, dev:solid, dev:svelte
Starred by 662 users
Forked by 39 users
Languages   TypeScript 88.3% | Svelte 7.4% | JavaScript 2.1% | CSS 1.5%
🌐
npm
npmjs.com › package › @chunxei › react-diff-viewer
@chunxei/react-diff-viewer - npm
August 23, 2021 - A simple and beautiful text diff viewer component made with diff and React. Latest version: 3.2.4, last published: 4 years ago. Start using @chunxei/react-diff-viewer in your project by running `npm i @chunxei/react-diff-viewer`. There are no ...
      » npm install @chunxei/react-diff-viewer
    
Published   Aug 23, 2021
Version   3.2.4
Author   Mel Jatau
🌐
DhiWise
dhiwise.com › post › exploring-the-power-of-react-diff-viewer-comprehensive-guide
Exploring the Benefits of React Diff Viewer for Code Comparison
February 15, 2024 - To get started with React Diff Viewer, you first need to install the package via npm or yarn:
🌐
Snyk
snyk.io › advisor › react-diff-view › react-diff-view code examples
Top 5 react-diff-view Code Examples | Snyk
threshold: 30, markLongDistanceDiff: true, }); // old,new Text if (patch === '') { const gitDiff = getDiff(oldText, newText); const files = parseDiff(gitDiff); const hunk = files[0].hunks; return ( hunk &amp;&amp; ); } // Patch const files = parseDiff( patch .split('\n') .slice(1) .join('\n') ); // eslint-disable-next-line react/prop-types const renderFile = ({ oldRevision, newRevision, type, hunks }) =&gt; ( ); mozilla / addons-code-manager / src / components / DiffView / index.spec.tsx View on Github
🌐
Socket
socket.dev › npm › package › react-diff-viewer-refined › diff › 3.2.4
react-diff-viewer-refined - npm Package Compare versions - S...
A simple and beautiful text diff viewer component made with diff and React. Version: 3.2.4 was published by mboisvert2. Start using Socket to analyze ...
🌐
npm
npmjs.com › package › react-string-diff
react-string-diff - npm
July 27, 2020 - Highlight the difference between two strings in a React component. Latest version: 0.2.0, last published: 5 years ago. Start using react-string-diff in your project by running `npm i react-string-diff`. There are 1 other projects in the npm ...
      » npm install react-string-diff
    
Published   Jul 27, 2020
Version   0.2.0
Author   Elvin Dzhavadov