[React-Aria] Nextjs Setup #2636
Answered
by
devongovett
TheAggressive
asked this question in
Q&A
-
I see in the docs it says to wrap your wrap your application in an SSR Provider. my question is should you do that per component or just wrap the whole app in the _app.js? _app.js
import {SSRProvider} from '@react-aria/ssr';
function MyApp({ Component, pageProps }) {
return (
<SSRProvider>
<Component {...pageProps} />
</SSRProvider>
);
} |
Beta Was this translation helpful? Give feedback.
Answered by
devongovett
Dec 5, 2021
Replies: 1 comment 1 reply
-
It should be around the whole app. This will guarantee that any ids that are generated are globally unique. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheAggressive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should be around the whole app. This will guarantee that any ids that are generated are globally unique.