Components
Contza Provider

Contza Provider <ContzaProvider />

Contza Provider is an essential component and you need to wrap your application with it in order to Contza function.

Props

childrenChildren component.
websiteIdDefines the Contza website identifier.
initialContentsArray 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;