react-component / react-component/motion

React 19 compatible

Open
#66 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
178
Forks
51
PR merge metrics
No merged PRs in 30d

Description

Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.
elementRefGetterWithDeprecationWarning	@	react.development.js?9f62:193
CSSMotion	@	CSSMotion.js?a4ab:124

https://github.com/react-component/motion/blob/e9cb0993a7b0b3b660289daa66062067ba240cd2/src/CSSMotion.tsx#L241-L253

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/CSSMotion.tsx at lines 241-253, the location linked in the issue, and reproduce the warning using React 19. Trace the ref access reported in the stack trace and verify that the warning is gone while CSS motion behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.