Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export React's useId hook #41559

Closed
Lovor01 opened this issue Jun 5, 2022 · 1 comment
Closed

export React's useId hook #41559

Lovor01 opened this issue Jun 5, 2022 · 1 comment
Labels
[Package] Element /packages/element [Type] New API New API to be used by plugin developers or package users.

Comments

@Lovor01
Copy link
Contributor

Lovor01 commented Jun 5, 2022

I propose to surface useId hook from React, so it is available in block development.

@Mamaduka
Copy link
Member

Mamaduka commented Jun 6, 2022

Hi, @Lovor01

The new hook will be exported after React 18 update. Meanwhile, you can use useInstanceId.

@Mamaduka Mamaduka added the [Type] New API New API to be used by plugin developers or package users. label Jun 6, 2022
@gziolo gziolo added the [Package] Element /packages/element label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Element /packages/element [Type] New API New API to be used by plugin developers or package users.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants