/react-intelli-link

React Intelli Link as the name says, it intelligently senses whether the provided url is internal/external url and suitably returns an anchor(<a>) or Link(<Link>) tag with the given attributes.

Primary LanguageJavaScriptMIT LicenseMIT

react-intelli-link

PRs Welcome License

React Intelli Link as the name says, it intelligently senses whether the provided url is internal/external url and suitably returns an anchor(<a>) or Link(<Link>) tag with the given attributes.

Usage

IntelliLink


React Intelli Link as the name says, it intelligently senses whether the provided url is internal/external url and suitably returns an anchor(<a>) or Link(<Link>) tag with the given attributes.

This react component follows the following syntax and supports four attributes to, rel, target and value. Feed the url to to attribute of IntelliLink.

<IntelliLink to='https://www.google.co.in/' rel='external' target='_blank' value='Google Search' />

Contributors

Bharath Kumar Ravichandran

License

MIT

Built with love