import React from 'react'
// @ts-ignore
import Highlight from 'react-highlight'
import { PageTitle } from 'UI'
function HowTo() {
return (
{
`
type FeatureFlag = {
key: string;
is_persist: boolean;
value: string | boolean;
payload: string
}
tracker.onFlagsLoad((flags: FeatureFlag) => {
/* run code */
})
// or
if (openreplay.isFlagEnabled('my_flag')) {
// run your activation code here
}`}
Documentation
)
}
export default HowTo;