fix: compatible with react 17 (#46261)

This commit is contained in:
MadCcc 2023-12-05 11:33:43 +08:00 committed by GitHub
parent e191962226
commit 937a1a2a85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,9 @@
import { useId } from 'react';
import * as React from 'react';
const fullClone = {
...React,
};
const { useId } = fullClone;
const useEmptyId = () => '';