Skip to content

Commit

Permalink
fix(useUniqueId): use toString instead of an empty string (#3591)
Browse files Browse the repository at this point in the history
  • Loading branch information
myNameIsDu committed Jan 26, 2024
1 parent 43544a0 commit d80914c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/useUniqueId.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import uniqueId from 'lodash/uniqueId';

const reactUseId: undefined | (() => string) = (React as any)['useId' + ''];
const reactUseId: undefined | (() => string) = (React as any)['useId'.toString()];

/**
* Used for generating unique ID for DOM elements
Expand Down

0 comments on commit d80914c

Please sign in to comment.