📌  相关文章
📜  如何用 React 组件替换字符串 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:34.828000             🧑  作者: Mango

代码示例1
import { replaceReact } from "replace-react";

const MyApp = () => {
  return (
    
{replaceReact("hello world", /(world)/g, (match, key) => (

{match}

))}
); };