我想在Pure React JS和Nodejs(Express,MongoDB)中创建一个博客。我也可以邮寄代码片段和标题,而不是简单的文本

发布于 2025-02-12 09:29:13 字数 1457 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不再让梦枯萎 2025-02-19 09:29:13

如果要使用纯React,则可能需要使用诸如Create React App或Vite + React之类的内容。您可以将React-Markdown的宣传库删除到解析博客文章。

我还建议使用astro( https://astro.build/ )本地。

If you want to use pure React, you might want to use something like Create React App, or Vite + React. You can pull in a Markdown library like react-markdown to parse blog posts.

I would also recommend using something like Astro (https://astro.build/), which can parse markdown and React natively.

月野兔 2025-02-19 09:29:13

您可以使用Ckeditor之类的库,以及用于高级编辑器的Quill,您可以在其中添加一些图像和代码片段。并将该编辑器的值发送到您的服务器。

但是,如果您不喜欢编辑,您可能会喜欢React-Markdown。

you could use libraries like CKEditor, and Quill for advanced editors where you could add some images, and code snippets. and send the value of that editor to your server.

but you might like react-markdown if you don't like editors.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文