1const { featureAllocation, featureUsage, featureUsageExceeded, value: isFeatureEnabled } = useSchematicEntitlement("reports");
2const { track } = useSchematicEvents();
3
4const App = () => {
5 return (
6 <>
7 <button
8 disabled={isFeatureEnabled}
9 onClick={() => { track({ event: 'report-generation' }) } }
10 >
11 Generate Report
12 </button>
13
14 <div>
15 You've used {featureUsage} of {featureAllocation} reports this month
16 </div>
17 </>
18 )
19}
1const MyComponent = () => {
2 const isFeatureEnabled = useSchematicFlag("reports");
3 return isFeatureEnabled ? <Reports /> : <Fallback />;
4};
1const { track } = useSchematicEvents();
2
3const Component = () => {
4 const handleClick = () => {
5 track({ event: 'report-generation' })
6 }
7 return (
8 <button onClick={handleClick} >
9 Generate Report
10 </button>
11 )
12}
1const {
2 featureAllocation,
3 featureUsage,
4 value: isFeatureEnabled
5} = useSchematicEntitlement("reports");
6
7const Component = () => {
8 return (
9 <div>
10 <button disabled={isFeatureEnabled}>Generate Report</button>
11 <div>You've used {featureUsage} of {featureAllocation} reports this month</div>
12 </div>
13 )
14}
Implement packaging in your application with a familiar interface. Don't maintain hard-coded policy files, stale customer data, or homegrown feature flags.
Our robust API and out-of-the-box integrations with Segment, CRMs, and billing systems make aggregating account, billing, and usage data straightforward.
Application and API transactions are tracked across Schematic for straightforward debugging. We maintain 99.99% uptime.
Handle subscriptions and usage-based billing with Stripe's infrastructure.
Secure authentication with social logins and MFA support.
Track user behavior and enable data-driven decisions.
Sync customer data and revenue metrics with your CRM.
Connect customer data with marketing and sales tools.