Fix: Handle refs in Button component using React.forwardRef#53
Fix: Handle refs in Button component using React.forwardRef#53DeveloperAmrit wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthroughThe Button component in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes #52
Description
This PR resolves the issue where the Button component was throwing a warning about refs not being handled properly. The warning occurred because the Button component was not wrapped in React.forwardRef, which is required for function components to accept refs.
Changes Made
How to test
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.