React
Initialize
import { tiun } from '@tiun/sdk';
import { useEffect } from 'react';
function App() {
useEffect(() => {
tiun.init({
snippetId: 'YOUR_SNIPPET_ID',
language: 'en', // set to your site's language
});
return () => tiun.destroy();
}, []);
return <>{/* your app */}</>;
}Checkout
Listen for user changes
Gate content
Login and logout
Paywall events (time-based)
Content management (time-based)
Last updated
Was this helpful?