mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #763] fix(react/examples): import createRoot from package #764
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#764
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: 🔄 Open
Base:
main← Head:text-example-import📝 Commits (2)
d40a9d1fix(react/examples): import createRoot from package6b22ae2Merge branch 'main' into text-example-import📊 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.