Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liaodalin19903 opened this issue Feb 8, 2025 · 0 comments

Comments

@liaodalin19903
Copy link

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?
@liaodalin19903 liaodalin19903 changed the title [question] [question]is there a utility method to convert the data into the blockMap data structure required by react-notion? Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant