usePollz()
usePollz
usePollz Parameters
Return Values
Usage
import { usePollz } from 'pollz-react';
const YourComponent = () => {
const { sdk, initialized } = usePollz();
if (!initialized) {
return <div>Loading...</div>;
}
// Access sdk to perform Pollz SDK operations
return (
<div>
<h2>Your Pollz Component</h2>
{/* Render your component with Pollz SDK functionalities */}
</div>
);
};Last updated