mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 18:07:00 +02:00
feat: Add React 19 support to Docusaurus v3 (#10763)
This commit is contained in:
parent
f196a1eb29
commit
0f29a37b3a
37 changed files with 111 additions and 85 deletions
|
@ -12,7 +12,7 @@ import {version as ReactVersion} from 'react';
|
|||
import {version as ReactDOMVersion} from 'react-dom';
|
||||
|
||||
export function TestComponent() {
|
||||
const expectedVersion = 18;
|
||||
const expectedVersion = 19;
|
||||
if (!ReactVersion.startsWith(`${expectedVersion}`)) {
|
||||
throw new Error(
|
||||
`'test-bad-package/README.mdx' is rendered with bad React version: ${ReactVersion}`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue