【问题标题】:How to render JSX components in MDX in Remix如何在 Remix 中渲染 MDX 中的 JSX 组件
【发布时间】:2022-07-18 22:51:37
【问题描述】:

我正在尝试使用 Remix 构建博客并以 MDX 格式发布我的帖子,如何在我的 MDX 中呈现 JSX 组件 例如:

import LoginButton from '../../components/LoginButton.jsx'
# JSX Component rendered below
<LoginButton/>

【问题讨论】:

    标签: reactjs remix remix.run


    【解决方案1】:

    可在文档中找到示例:https://remix.run/docs/en/v1/guides/mdx#routes

    【讨论】:

      猜你喜欢
      • 2019-05-17
      • 2020-06-28
      • 2018-10-16
      • 1970-01-01
      • 2021-08-08
      • 1970-01-01
      • 2018-03-07
      • 1970-01-01
      • 2018-04-08
      相关资源
      最近更新 更多