Skip to content

feat: add support for React 19 - #1238

Merged
christopherthielen merged 2 commits into
masterfrom
react19
Feb 9, 2026
Merged

feat: add support for React 19#1238
christopherthielen merged 2 commits into
masterfrom
react19

Conversation

@christopherthielen

@christopherthielen christopherthielen commented Jan 8, 2026

Copy link
Copy Markdown
Member

BREAKING CHANGE: Drop support for React 16

  • Replace UISref.defaultProps with default parameters (React 19 compat)
  • Update deprecated types: StatelessComponent -> FunctionComponent
  • Remove ValidationMap cast, ClassicComponentClass usage
  • Import act from 'react' instead of 'react-dom/test-utils'
  • Update @testing-library/react to v16 (supports React 18/19)

Fixes #1230

@christopherthielen christopherthielen changed the title feat: add support for React 17, 18, and 19 feat: add support for React 19 Jan 8, 2026
BREAKING CHANGE: Drop support for React 16

- Replace UISref.defaultProps with default parameters (React 19 compat)
- Update deprecated types: StatelessComponent -> FunctionComponent
- Remove ValidationMap cast, ClassicComponentClass usage
- Import act from 'react' instead of 'react-dom/test-utils'
- Update @testing-library/react to v16 (supports React 18/19)
- Unit tests with vitest for each React version
- Sample app with Vite + Playwright e2e tests for each version
- React 17 uses ReactDOM.render, React 18/19 use createRoot
@JunYu-NIH

Copy link
Copy Markdown

Thank you!

@christopherthielen
christopherthielen merged commit e6c9210 into master Feb 9, 2026
4 checks passed
@christopherthielen
christopherthielen deleted the react19 branch February 9, 2026 20:03
@chiptus chiptus mentioned this pull request Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can ui-router support react 19?

2 participants