Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match isn't being passed to cloned anchors #13

Closed
AsaAyers opened this issue Nov 7, 2016 · 1 comment
Closed

Match isn't being passed to cloned anchors #13

AsaAyers opened this issue Nov 7, 2016 · 1 comment

Comments

@AsaAyers
Copy link

AsaAyers commented Nov 7, 2016

const ExternalLink = (props) => (
    <a href={props.url} target="_blank" rel="nofollow">
        {JSON.stringify(props)}
    </a>
)

                <AnchorifyText text={message}>
                    <ExternalLink />
                </AnchorifyText>

props contains a .url, but nothing else.

I think you forgot to compile your code before the last release:

https://github.com/georgeOsdDev/react-anchorify-text/blob/master/lib/components/AnchorifyText.js#L70
https://github.com/georgeOsdDev/react-anchorify-text/blob/master/src/components/AnchorifyText.js#L31

@georgeOsdDev
Copy link
Member

Fixed with #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants