👀 See Sanity in action: Watch product demo now →

How do you change the container tag for an block-content-to-react?

2 replies
Last updated: Nov 16, 2020
How do you change the container tag for an block-content-to-react?
Nov 16, 2020, 11:20 PM
I see
serializers.container
on the documentation but there’s no examples 😔
Nov 16, 2020, 11:21 PM
Alright figured it out:

const serializers = {
    container: props => <h1>{props.children}</h1>
}
Nov 16, 2020, 11:24 PM

Sanity.io – build remarkable experiences at scale

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

Categorized in