Contza Provider <ContzaProvider />
Contza Provider is an essential component and you need to wrap your application with it in order to Contza function.
Props
children | Children component. |
websiteId | Defines the Contza website identifier. |
initialContents | Array of Contza contents. This prop is really useful when dealing with different rendering strategies such as SSR. |
Examples
Here is an example how to use Contza provider component.
Basic usage
import { ContzaProvider } from "@contza/react";
const App = () => {
return (
<ContzaProvider websiteId="your-website-id">
{/* Rest of the application */}
</ContzaProvider>
);
};
export default App;