Skip to content

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

Open

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?

Activity

  1. changed the title [-][question][/-] [+][question]is there a utility method to convert the data into the blockMap data structure required by react-notion?[/+] on Feb 8, 2025
  2. szydlovski commented on Apr 11, 2025

    @szydlovski
    1. You cannot. This package uses a proprietary format implemented in https://github.com/splitbee/notion-api-worker
    2. There is not, but you can use the linked repository to setup your own proxy API, or use the one hosted by Splitbee.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions