mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 03:22:59 +08:00
fix: compatible with react 17 (#46261)
This commit is contained in:
parent
e191962226
commit
937a1a2a85
@ -1,4 +1,9 @@
|
|||||||
import { useId } from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
|
const fullClone = {
|
||||||
|
...React,
|
||||||
|
};
|
||||||
|
const { useId } = fullClone;
|
||||||
|
|
||||||
const useEmptyId = () => '';
|
const useEmptyId = () => '';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user