/react-autolink-text

A React component for converting URLs in a given string of text into clicking link tags.

Primary LanguageJavaScriptOtherNOASSERTION

<AutoLinkText />

build status

A React component for converting URLs in a given string of text into clicking link tags.

Installation

npm install react-autolink-text

Usage

import ReactDOM from 'react-dom';
import AutoLinkText from 'react-autolink-text';

ReactDOM.render(
  <AutoLinkText text="Check out this cool component: http://github.com/OpenGov/react-autolink-text" />,
  document.body
);

Thanks

Thank you to @gregjacobs for creating Autolinker.js from which this component was based.