Popularity
1.5
Declining
Activity
0.0
Stable
41
2
10

Programming language: JavaScript
License: MIT License

react-autolink alternatives and similar libraries

Based on the "Miscellaneous" category.
Alternatively, view react-autolink alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of react-autolink or a related project?

Add another 'Miscellaneous' Library

README

react-autolink

Circle CI NPM

An autolink mixin for React

Install

npm i react-autolink
# or
bower i react-autolink # `window.ReactAutolink` is available

Usage

let App = React.createClass({
  getDefaultProps() {
    return {
      text: "foo bar baz http://example.org bar",
    };
  },

  mixins: [
    ReactAutolink
  ],

  render() {
    return (
      <div>
        <span>{ this.autolink(this.props.text) }</span>
        <span>{ this.autolink(this.props.text, { target: "_blank", rel: "nofollow" }) }</span>
        <span>{ ReactAutolink.autolink(this.props.text) }</span> // or can be used no mixin way
      </div>
    );
  }
});

Tips

In tandem with react-emoji

Development

Dependency

$ npm i

Run

$ npm start # => http://0.0.0.0:8080

Test

$ npm test

License

MIT


*Note that all licence references and agreements mentioned in the react-autolink README section above are relevant to that project's source code only.