mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 09:26:06 +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 = () => '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user