【文件属性】:
文件名称:react-portable-text:在React应用程序中呈现可移植文本块内容的简单方法
文件大小:37KB
文件格式:ZIP
更新时间:2021-04-28 09:45:48
react serialization reactjs sanity sanity-io
React可移植文本
在React应用程序中呈现可移植文本块内容的一种简便方法。
快速范例
yarn add react-portable-text
import PortableText from "react-portable-text"
const YourComponent = ( { portableTextContent } ) => (
< div>
< PortableText
// Pass in block content straight from Sanity.io
content = { portableTextContent }
// Optionally override marks, decorators, blocks, etc. in a flat
// structure without
【文件预览】:
react-portable-text-master
----.gitignore(107B)
----package.json(1KB)
----src()
--------index.jsx(5KB)
----LICENSE(16KB)
----build.js(332B)
----tsconfig.json(211B)
----.eslintrc.js(411B)
----README.md(4KB)
----.npmignore(81B)
----.prettierrc(45B)
----yarn.lock(62KB)