As an initial step, encapsulate your application within the CommtProvider. This step is crucial for integrating your application with the capabilities provided by the Commt plugin. The CommtProvider sets up a context and provides certain functionalities to be used within your App.This integration enables your application to seamlessly communicate with and benefit from the Commt plugin.
import CommtProvider from "@commt/react-sdk";
const App = () => {
return (
{/* All your route configurations etc. */}
);
};
const WrappedComponent = CommtProvider(App);
export default WrappedComponent;
or
import CommtProvider from "@commt/react-sdk";
const App = () => {
return (
<CommtProvider>
{/* All your route configurations etc. */}
</CommtProvider>
);
};
export default App;