Skip to content

What is <IdProvider>? #486

Locked Answered by peduarte
VaibhavAcharya asked this question in Help
Mar 13, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi, IdProvider is a Radix UI Component to ensure that when you server-side render your application, the generated IDs are matching on both the server and client.

Here's some more information about it: https://radix-ui.com/primitives/docs/overview/server-side-rendering

yarn add '@radix-ui/react-id';

Then import it:

import { IdProvider } from '@radix-ui/react-id';

And wrap your App in it:

export default () => {
  return <IdProvider>...</IdProvider>
}

This will be documented soon

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@VaibhavAcharya
Comment options

@peduarte
Comment options

@benoitgrelard
Comment options

Answer selected by peduarte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants