[PR #45] [MERGED] React: Fix JSX Namespace Compatibility #1023

Closed
opened 2026-03-14 09:14:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/45
Author: @msmps
Created: 8/19/2025
Status: Merged
Merged: 8/19/2025
Merged by: @kommander

Base: mainHead: fix/react-types-20250819164641


📝 Commits (2)

  • 83ae0f7 fix(react): maintain compatibility with react components
  • c226119 chore: formatting

📊 Changes

2 files changed (+9 additions, -13 deletions)

View changed files

📝 packages/react/jsx-namespace.d.ts (+7 -4)
📝 packages/react/scripts/build.ts (+2 -9)

📄 Description

Description

  • Updated JSX.Element type from React.ReactElement<any, any> to React.ReactNode for broader compatibility
  • Enhanced IntrinsicElements to extend React's built-in JSX elements while adding OpenTUI components
  • Fixed ElementClass interface to properly extend React's ComponentClass

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opentui/pull/45 **Author:** [@msmps](https://github.com/msmps) **Created:** 8/19/2025 **Status:** ✅ Merged **Merged:** 8/19/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `fix/react-types-20250819164641` --- ### 📝 Commits (2) - [`83ae0f7`](https://github.com/anomalyco/opentui/commit/83ae0f7c166c4ea39b78b78425c62d2299d2ea3b) fix(react): maintain compatibility with react components - [`c226119`](https://github.com/anomalyco/opentui/commit/c226119069b3d772fdebed74da80eca08261495b) chore: formatting ### 📊 Changes **2 files changed** (+9 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `packages/react/jsx-namespace.d.ts` (+7 -4) 📝 `packages/react/scripts/build.ts` (+2 -9) </details> ### 📄 Description # Description - Updated JSX.Element type from React.ReactElement<any, any> to React.ReactNode for broader compatibility - Enhanced IntrinsicElements to extend React's built-in JSX elements while adding OpenTUI components - Fixed ElementClass interface to properly extend React's ComponentClass --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:14:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1023
No description provided.