Skip to content

chore: React 19 support#160

Open
mas-chen-tvlk wants to merge 1 commit intopveyes:masterfrom
mas-chen-tvlk:chore/upgrade-react-19
Open

chore: React 19 support#160
mas-chen-tvlk wants to merge 1 commit intopveyes:masterfrom
mas-chen-tvlk:chore/upgrade-react-19

Conversation

@mas-chen-tvlk
Copy link

@mas-chen-tvlk mas-chen-tvlk commented Oct 24, 2025

PR Summary

Issue

Fixes type compatibility issue with React 19 where ReactHTML type has been removed, causing TypeScript errors when using htmr library.

Reference: Stack Overflow #79262083

Changes

  • Updated type definitions to be compatible with React 19
  • Replaced deprecated ReactHTML type with appropriate React 19 equivalent types
  • Ensured backward compatibility with earlier React versions where possible

Impact

  • Resolves TypeScript compilation errors when using htmr with React 19
  • Maintains functionality across different React versions
  • No breaking changes to the public API

Testing

  • Verified TypeScript compilation with React 19
  • Tested with existing React 18 projects
  • Confirmed no runtime behavior changes
  • Updated type tests if applicable

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@mas-chen-tvlk mas-chen-tvlk changed the title chore: Upgrade React chore: React 19 support Oct 24, 2025
@codenomnom
Copy link

Argh, I upgraded to Next 16 and ended up with newer React, and guess what - everything stopped working. @pveyes this one would be really nice to merge 🙏 @mas-chen-tvlk thanks for the good job!

@SAGV
Copy link

SAGV commented Nov 25, 2025

Would be so nice to get merged indeed…

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.

3 participants