Skip to content
R

react-code-compare

A simple and fast text diff viewer component

by tknickmanFree

#1197in UI Libraries
0In stores

Description

react-code-compare is a React diff viewer for comparing two blocks of text or code. It is a fork of react-diff-viewer by praneshr, and it ad…

Highlights

  • React diff viewer for code and text
  • Virtualized table renderer for large diffs
  • Hooks and a context API
  • Fork of react-diff-viewer
  • MIT license

Ratings & Reviews

No ratings yet

Be the first to rate react-code-compare.

People also visit

R

react-diff-viewer-continued

Continuation of a simple and beautiful text diff viewer component

UI Libraries
Launch
R

react-diff-viewer-continued-react19

Continuation of a simple and beautiful text diff viewer component

UI Libraries
Launch
R

react-json-view-compare

React json compare view plugin, supports expansion and hiding.use react hooks

UI Libraries
Launch
D

diffs

@pierre/diffs is an open source diff and code rendering library

UI Libraries
Launch
R

react-virtualized

React components for efficiently rendering large lists and tabular data

UI Libraries
Launch
R

react-vtree

React component for efficiently rendering large tree structures

UI Libraries
Launch

react-code-compare FAQ

What is react-code-compare?

A React diff viewer that shows the differences between two blocks of text or code.

How does it handle large diffs?

It has a virtual table renderer, powered by @tanstack/react-virtual, for large diffs.

Where did it come from?

It is a fork of react-diff-viewer by praneshr, with the virtual renderer and the hooks added.

How do I install it?

Install the package with npm, as the README shows, and see the package README for props and hooks.

What do I need to develop it?

Node.js 16 or newer and pnpm, according to the README.

What are the best react-code-compare alternatives?

Popular alternatives to react-code-compare include react-diff-viewer-continued, react-diff-viewer-continued-react19 and react-json-view-compare. See all react-code-compare alternatives

Developer Stuff

Badges