Skip to content

Conversation

@christopherthielen
Copy link
Member

@christopherthielen christopherthielen commented 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)

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
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