Skip to content

Commit c02c32c

Browse files
committed
docs: update README
1 parent c526ebf commit c02c32c

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ Built on top of `react-reconciler`, this library creates a custom React renderer
99

1010
## Installation
1111

12+
The major version of `react-render-to-markdown` follows the React version. Install the one that matches your project:
13+
1214
```bash
13-
npm install react-render-to-markdown
15+
# React 19
16+
npm install react-render-to-markdown@19
17+
18+
# React 18
19+
npm install react-render-to-markdown@18
1420
```
1521

1622
## Quick Start

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-render-to-markdown",
3-
"version": "19.0.0",
3+
"version": "19.0.1",
44
"description": "render React components to Markdown strings for SSG-MD",
55
"repository": {
66
"type": "git",

src/react/render.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { MarkdownNode, reconciler, TextNode } from './reconciler.js';
2+
import { MarkdownNode, TextNode, reconciler } from './reconciler.js';
33

44
// Access React internals to intercept the hooks dispatcher.
55
// React 19: __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE.H
@@ -87,7 +87,7 @@ function installEffectInterceptor(): () => void {
8787
if (originalDescriptor) {
8888
Object.defineProperty(ReactSharedInternals, 'H', originalDescriptor);
8989
} else {
90-
delete (ReactSharedInternals as Record<string, unknown>).H;
90+
(ReactSharedInternals as Record<string, unknown>).H = undefined;
9191
ReactSharedInternals.H = realH;
9292
}
9393
}

0 commit comments

Comments
 (0)