Help with reading and mapping the "aboutUsPara" section in a React app using block text.

11 replies
Last updated: Feb 22, 2023
Can anyone help me how to read this "aboutUsPara" section, even tried blockcontent. Not working
can you clarify what you're trying to achieve here? i'm not sure i understand
Hey, User...building a dummy app in react,which has a name, sub heading and a paragraph. I am able to map the name and sub heading as it's a simpe text. But as for long text paras i create a text type block as per the documentation. Hence whenever i try to map the aboutUsPara section i does not work. I am sorry i am a bit new
all is well
There is a specific component for block text that you have to import on the front end to handle the block-text
It's called
<PortableText />
i did, got an error .
how are you fetching the data?
using BlockContent
let me try portabletext once
can't thank you enough brother
it worked.. πŸ™‚

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?