0.0.2 • Published 3 years ago

string-replace-jsx v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

String-Replace-Jsx

npm GitHub stars GitHub license Node.js CI

What

The stringReplaceJsx method returns a new string with some or all matches of a pattern.

How to use

npm i --save string-replace-jsx

import stringReplaceJsx from "string-replace-jsx";

<div>
  {stringReplaceJsx("fuga https://google.com", urlRegex, (match) => (
    <a
      className={styles.link}
      href={match.toString()}
      target="_blank"
      rel="noreferrer"
    >
      {match}
    </a>
  ))}
</div>;
0.0.2

3 years ago

0.0.1

3 years ago

1.0.0

3 years ago