Import from /react or from /component AI talks against each other? #4971
Answered
by
wingkwong
J4v4Scr1pt
asked this question in
Help
-
I used the new HeroUI chat ( works awesome ). But it confused me a bit because it suggested me to import from /react and not the individual component, which is suggested by the AI chat on the home page. I use NextJs 15 with only the App router. What is the proper way to import components to have the best performance and such? |
Beta Was this translation helpful? Give feedback.
Answered by
wingkwong
Mar 3, 2025
Replies: 1 comment 3 replies
-
From the message, it says you can import from global package but individual packages is better for tree shaking. doesn't sound like a problem to me. |
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
oh sorry. i completely missed the second pic. for better performance, please use individual one. the reasons in pic 2 aren't true. we'll think about how to tune it. thanks.