UNPKG
antd-v5
Version:
latest (5.14.1)
5.14.1
An enterprise-class UI design language and React components implementation
ant.design
antd-v5
/
es
/
config-provider
/
hooks
/
useThemeKey.js
8 lines
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
*
as
React
from
'react'
;
const
fullClone =
Object
.
assign
({},
React
);
const
{ useId } = fullClone;
const
useEmptyId
= (
) =>
''
;
const
useThemeKey =
typeof
useId ===
'undefined'
? useEmptyId : useId;
export
default
useThemeKey;