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
Repository https://github.com/otakustay/react-diff-view
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
Videos
02:00:11
How React works under the Hood | React reconciliation, fibre , ...
58:31
Virtual DOM and How React Works (Fibre, reconciliation, diffing) ...
48. How Diffing algorithm works in React components with ...
05:13
Build a React.js Source Code Difference Viewer Editor Using ...
🔴 Diff Function (3) • Objects • React JS Programming ...
16:25
04 - Code Your Own React - Diffing two DOM trees - YouTube
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
Repository https://github.com/cezary/react-diff
Homepage https://github.com/cezary/react-diff
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
Published Feb 07, 2026
Version 4.1.2
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
Top answer 1 of 2
8
Try either "react-diff-view" or "react-diff-viewer".
The "react-diff-viewer" is quite simple to use/implement while the "react-diff-view" offers some more advanced features.
It's up to you, here the links: https://www.npmjs.com/package/react-diff-viewer https://www.npmjs.com/package/react-diff-view
2 of 2
7
react-diff-viewer-continued might be what you are looking for since 'react-diff-view' is no longer having updates and is not compactable for react 18^.
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
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
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 && ); } // Patch const files = parseDiff( patch .split('\n') .slice(1) .join('\n') ); // eslint-disable-next-line react/prop-types const renderFile = ({ oldRevision, newRevision, type, hunks }) => ( ); mozilla / addons-code-manager / src / components / DiffView / index.spec.tsx View on Github
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