Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 108fb0a

Browse files
committed
docs: change README.md
1 parent 564f078 commit 108fb0a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22

33
React Renderer for @notionhq/client blocks
44

5-
[![Publish Package](https://github.com/piotrzaborow/notion-react-renderer/actions/workflows/npm-publish.yml/badge.svg?branch=main)](https://github.com/piotrzaborow/notion-react-renderer/actions/workflows/npm-publish.yml)
6-
75
## How to install?
86

97
```
10-
npm install @piotrzaborow/notion-react-renderer
8+
npm install notion-blocks-react-renderer
119
```
1210

1311
## How to use Notion React Renderer?
1412

1513
```
1614
17-
import { blocksToReactComponents } from '@piotrzaborow/notion-react-renderer'
15+
import { blocksToReactComponents } from 'notion-blocks-react-renderer'
1816
1917
const Component = () => {
2018
const [blocks, setBlocks] = useState([])
@@ -31,7 +29,7 @@ const Component = () => {
3129
You can add your own renderers (Components) for Notion Blocks by creating new object and passing it to `blocksToReactComponents` function as a second parameter:
3230

3331
```
34-
import { blockToText, blocksToReactComponents, BLOCKS, blockRenderer } from '@piotrzaborow/notion-react-renderer'
32+
import { blockToText, blocksToReactComponents, BLOCKS, blockRenderer } from 'notion-blocks-react-renderer'
3533
3634
const renderers = {
3735
[BLOCKS.PARAGRAPH]: (block) => <p>{ blockToText(block) }</p>,

0 commit comments

Comments
 (0)