Skip to content

A React 19 demo showing useDeferredValue for handling expensive renders without blocking the UI

Notifications You must be signed in to change notification settings

vladyslav-panchenko280/react-useDeferredValue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deferred Value Demo

A React 19 demo showing useDeferredValue for handling expensive renders without blocking the UI.

Features

  • Image filter controls (blur, brightness, contrast, saturate, sepia)
  • Simulated expensive render (100ms delay) to demonstrate concurrent features
  • Uses useDeferredValue to defer updates to expensive components

Getting Started

npm install
npm run dev

How It Works

The DisplayImage component simulates an expensive render. Without concurrent features, moving sliders would freeze the UI. With useDeferredValue, React prioritizes slider responsiveness and defers the image re-renders.

About

A React 19 demo showing useDeferredValue for handling expensive renders without blocking the UI

Topics

Resources

Stars

Watchers

Forks

Contributors