Skip to content

[question]is there a utility method to convert the data into the blockMap data structure required by react-notion? #126

@liaodalin19903

Description

@liaodalin19903

Hello. I'd like to ask the following questions:

  1. If I directly retrieve all the blocks of a page using the notion-sdk-js, can I directly render them using react-notion?
<div style={{ maxWidth: 768 }}>
    <NotionRenderer blockMap={blockMap} />
</div>
  1. If not, is there a utility method to convert the data into the blockMap data structure required by react-notion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions