Simple link and newline text formatting for react
npm install react-format-textReact component for formatting newlines and links. See the live demo.
npm install react-format-text
Newlines are converted to elements and words looking like URLs are replaced with appropriate elements. By default all absolute links have target set to _blank and rel to noopener noreferrer. It's possible to override this by passing the target and rel property to the component.
``javascript
var React = require('react');
var Text = require('react-format-text');
var App = React.createClass({
render: function() {
return
}
});
``