React
Add Dependency
npm install --save @hackler/react-sdkyarn add @hackler/react-sdkSDK Initialization
import { createInstance, HackleProvider } from "@hackler/react-sdk";
// YOUR_BROWSER_SDK_KEY 자리에 SDK 키를 넣습니다.
const hackleClient = createInstance("YOUR_BROWSER_SDK_KEY")
ReactDOM.render(
<HackleProvider hackleClient={hackleClient}>
<YourApp />
</HackleProvider>,
document.getElementById('root')
);
// GTM 연동 시 추가 script
window.hackleClient = hackleClientimport {createInstance, HackleProvider} from "@hackler/react-sdk";
// YOUR_BROWSER_SDK_KEY 자리에 SDK 키를 넣습니다.
const hackleClient = createInstance("YOUR_BROWSER_SDK_KEY")
function MyApp({Component, pageProps}) {
return (
<HackleProvider hackleClient={hackleClient} supportSSR>
<Component {...pageProps} />
</HackleProvider>
)
}
export default MyAppSDK Initialization Config
All Configuration Options
Option
Description
Default
Supported Version
Session Policy Configuration
Injecting User at Initialization
Refreshing Dashboard Configuration
Last updated