Go Behind the Experience to see how Tecovas brings the West to life with Sanity 🤠 July 18th

Using @portabletext/react library to render portable text in a Next JS app

2 replies
Last updated: Jun 14, 2023
The new portable text api has me baffled. I'm looking for how to render portable text in a Next JS app. I've read the docs, which point to repos for rendering portable text in HTML and React. Is that what I should be using? Or is there a Next-y way to do it? Thanks!
Jun 14, 2023, 4:25 AM
Since Next.js is built on React, you can use the
library. 👍
Jun 14, 2023, 6:07 AM
Perfect. Thank you!
Jun 14, 2023, 4:15 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?