Takes in text and a classname, parses the links, and creates
a Fragment with the links in Link elements. Uses a regular expression
to parse links in paragraphs -- must begin with http or https.
Parameters
text: string
The text to parse and display
Returns Element
A React jsx fragment containing text and link components
Takes in text and a classname, parses the links, and creates a Fragment with the links in Link elements. Uses a regular expression to parse links in paragraphs -- must begin with http or https.