ES6 Environment Required!!
react-text-anchorize
var myRules = // "match" defines target to anchorize. // Don't forget capture whole expression. match: //g // "wrap" is called synchronously. // You can wrap matched part of the text with React Component. /* React.Component */ { return <a href=sub>sub</a>; } // "replace" is called after text is rendered. // You can replace matched part of the text asynchronously, // by using "replaceContentsOf" /* void */ { myTwitterAPIClient; } ; ;return <AnchorizableText rules=myRules text="I love this tweet https://twitter.com/yuka_iguti/status/559023220100055042" />;