自定义组件
这虽然不是 MDX,但是我也想支持内嵌的 React 组件。
完全可以。
你可以在 src/markdown-components/index.tsx
添加任何你的组件,例如
src/markdown-components/index.tsx
使用这个组件。
在 Markdown 插入:<Demo />
This is a demo component
组件被正确加载了。
内置的组件
Tab
app/server-action/layout.tsx
代码为:
Wip
编辑为未完成。一般用于小节末尾。
此章节还在编写中....
最后更新于 2024/8/15 21:57:42
更新历史
本书还在编写中..
前往 https://innei.in/posts/tech/my-first-nextjs-book-here#comment 发表你的观点吧。