# What changed in @casl/react

> 5 changes in @casl/react 6 to 7 from its official release notes, upgrade guides and advisories: 4 breaking. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/@casl/react/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @casl/react 7

### Breaking changes

- Can no longer accepts an ability prop and instead relies on useAbility. (7.0.0) — [release notes](https://github.com/stalniy/casl/releases/tag/%40casl/react%407.0.0)
- createContextualCan is replaced by an unnamed alternative in the release notes. (7.0.0) — [release notes](https://github.com/stalniy/casl/releases/tag/%40casl/react%407.0.0)
- useAbility no longer accepts a context parameter. (7.0.0) — [release notes](https://github.com/stalniy/casl/releases/tag/%40casl/react%407.0.0)

## @casl/react 6

### Breaking changes

- Support for React 17.x is dropped because @casl/react uses the useSyncExternalStore hook. (6.0.0) — [release notes](https://github.com/stalniy/casl/releases/tag/%40casl/react%406.0.0)

### Fixes and other changes

- useAbility replaces useState and useEffect with useSyncExternalStore. (6.0.0) — [release notes](https://github.com/stalniy/casl/releases/tag/%40casl/react%406.0.0)
