mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #763] [MERGED] fix(react/examples): import createRoot from package #1546
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1546
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/763
Author: @nicolasff
Created: 3/1/2026
Status: ✅ Merged
Merged: 3/6/2026
Merged by: @kommander
Base:
main← Head:text-example-import📝 Commits (1)
6143b9cfix(react/examples): import createRoot from package📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/react/examples/text.tsx(+1 -1)📄 Description
The
text.tsxexample for React importedcreateRootfrom"../src"instead of referencing the"@opentui/react"package like in other examples.Other imports in the same directory
All other
.tsxfiles underpackages/react/examplesimportcreateRootusing the@opentui/reactpackage name, instead of a relative path (GitHub search).Reusing this example/demo script
This relative import worked if the example was used from within this repo, but it prevented this demo file from being used separately:
This fails with:
After this fix
(works as expected)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.