In the current implementation, all props are being spread across the <a /> element. This triggers React to throw a warning saying the offset property is not valid. This change destructures the offset property in the render method and then spreads all remaining props (including children) across the <a /> element.
In the current implementation, all props are being spread across the
<a />
element. This triggers React to throw a warning saying theoffset
property is not valid. This change destructures theoffset
property in the render method and then spreads all remaining props (includingchildren
) across the<a />
element.