The new docs' relative imports make examples tricky to follow #9372
Unanswered
will-stone
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
You can click on the import path |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋 🙂
The new docs look fantastic, well done on the roll out. However, I have some feedback that the examples are now a bit harder to follow. Whereas before, the code snippets only used components from
react-aria-components, there are now references to local components that we can't see.For example, here's the
Selectcomponent referencing the./Selectfile:That's fine, we can follow that into the next example tab, but then this file references a
./ListBoxfile which we can't see:It's not until we follow the code in StackBlitz do we find out that we need to be using the
ListBoxItemfrom the library.Whereas before we could copy paste and be off to a good start, there's now no way to do this.
Thanks,
Will.
Beta Was this translation helpful? Give feedback.
All reactions