some-react-components / react-scrollchor

A React component for scroll to `#hash` links with smooth animations
ISC License
149 stars 24 forks source link

Problem Scrollchor inside <a> tag #28

Closed leokrt closed 6 years ago

leokrt commented 6 years ago

Hey! I have a problem using component inside another tag component. resulting in error:

Warning: validateDOMNesting(...): cannot appear as a descendant of . See NavItem > SafeAnchor > a > ... > Scrollchor > a.

This happens because it is not possible to change the base component like in the bootstrap componentClass prop. Do you guys intend to adjust that?

bySabi commented 6 years ago

See my answer in this issue: https://github.com/bySabi/react-scrollchor/issues/17

bySabi commented 6 years ago

I will close this now.

Please reopen it is needed