Set Up Your App with Raydius React SDK

Once you have your app ID, import the RaydiusProvider component into your project, and wrap your app with it. It is generally recommended to render it as close to the root of your application as possible.

Example:

Once you have your app ID, import the RaydiusProvider component into your project, and wrap your app with it. It is generally recommended to render it as close to the root of your application as possible.

import { RaydiusProvider} from '@raydius/react’'

export default function App({ Component, pageProps }: AppProps) {
  return (
    <RaydiusProvider config={{ appId: 'xxxxxx', theme: 'dark' }}>
      <Component {...pageProps} />
    </RaydiusProvider>
  )
}

Last updated