react-scroll
react-scroll copied to clipboard
Not work with styled components
i use CRA. react 18.2.0
<Link to={'#about'}>{n.title}</Link>
<AboutSection id={'about'}>//other styled components </AboutSection>
export const AboutSection = styled.section'
background: white;
padding: 150px 10px;'
In console i see warning: target Element not found
also I noticed that there is no 'href' attribute for the link: