What is <IdProvider>? #486
-
I am using On the client side the id's are not matching up and causing console errors like: I understand this component helps in generating unique id's but due to the lack of documentation I don't know where to locate this component in lib ? To reproduce :https://github.com/VaibhavAcharya/humane-ui By the way thank you for this amazing library ❤ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi, 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 |
Beta Was this translation helpful? Give feedback.
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
Then import it:
And wrap your App in it:
This will be documented soon