ThirdwebProvider
The <ThirdwebProvider />
component lets you control what networks you want users to connect to,
what types of wallets can connect to your app, and the settings for the Thirdweb SDK .
function ThirdwebProvider<TChains extends Chain[]>(
props: PropsWithChildren<ThirdwebProviderProps<TChains>>,
): Element;
Parameters
Returns
React component.
type ReturnType = Element;
Example
You can wrap your application with the provider as follows:
import { ThirdwebProvider } from "@thirdweb-dev/react";
const App = () => {
return (
<ThirdwebProvider>
<YourApp />
</ThirdwebProvider>
);
};