Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Advanced] Why Wrapping/Mirroring a Component not just use ComponentPropsWithoutRef #771

Open
Farley-Chen opened this issue Dec 31, 2024 · 1 comment
Labels
ADVANCED Advanced Cheatsheet

Comments

@Farley-Chen
Copy link

What cheatsheet is this about? (if applicable)

Advanced cheatsheet

What's your issue or idea?

I found that Wrapping/Mirroring a Component and Wrapping/Mirroring a HTML Element use different way.

But why not just use ComponentPropsWithoutRef in the same way?

Is there any problem of using ComponentPropsWithoutRef?

@Farley-Chen Farley-Chen added the ADVANCED Advanced Cheatsheet label Dec 31, 2024
@Farley-Chen
Copy link
Author

Here is the link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADVANCED Advanced Cheatsheet
Projects
None yet
Development

No branches or pull requests

1 participant