79550833

Date: 2025-04-02 13:58:33
Score: 1
Natty:
Report link

To answer your question directly, you are assigning a display name to the original 'Popover' component, not your custom wrapper. I don't know why you would have to do that in the first place as that behavior is generally implicit when exporting components, unless you are generating components with a factory function.

Perhaps related but still breaking code, you have your state defined outside the component which is a no-no. I would try and moving the state inside the component wrapper.

I can't think of a compelling reason to re-export 'Popover' as this should be accessible straight from the package.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Senou Lynn