Skip to content

React 18 + types + infra rewrite

Latest
Compare
Choose a tag to compare
@rommguy rommguy released this 02 Mar 11:34
· 2 commits to main since this release

This is a major release, containing breaking changes that was long time coming.

Improvements:

  1. The implementation is now in TypeScript and the types are exported together with the package - no need to install @types/react-custom-scroll anymore.
  2. react-custom-scroll now supports React 18.
  3. Rewritten the whole build infra, using Vite.
  4. Moved to styled components - no need to add the customScroll css file to your code.
  5. Upgraded demo page including multiple use cases
  6. Bug fix - blocking outer scroll behavior
  7. Bug fix - nested react-custom-scroll elements that caused the handle to appear on all of them
  8. Switched from karma test runner to Playwright (still in progress to achieve higher coverage)

Migrating from v5 or earlier

Remove react-custom-scroll css file from your project
Switch to named import

import { CustomScroll } from "react-custom-scroll";

Enjoy