-
Notifications
You must be signed in to change notification settings - Fork 25
Documentation #29
Comments
+1 on this with attention to React Native and using custom serializers, etc. as well |
I find the documentation on the github README confusing as well. |
When will the documentation be updated to align with the samples provided in the Sanity starter projects? -- have been trying to make this work under the NextJS e-Commerce starter (sanity.js file) where PortableText along with empty serliazers object -- have put basic h1/h2 tag processing int here and it doesn't work....it doesn't even work when mushed together inside [slug].js in the root directory of the frontend. This link is also useless https://www.sanity.io/guides/portable-text-internal-and-external-links#render-the-links-with-react-b14f77c2e796 |
Figured it out here's my seralizer object in case anyone's looking for some tips to get started `// Set up Portable Text serialization // implement inline icon serializer from https://medium.com/@kimbjrkman/how-to-use-inline-images-in-rich-text-with-sanity-io-c42594baa509 serializers: {
}, |
Closing this, as the new |
There is a lot documentation on how to build the sanity cms (https://www.sanity.io/docs) but I coudn't find sufficient documentation on how to use the fetched data on the client side, which describes how to use sanity-io/block-content-to-react library with serializers e.g. types, marks, list, listItem to render custom react components.
Is there a hidden documentation I missed?
The text was updated successfully, but these errors were encountered: