Provider
The Provider
component connects and provides initial context to your application.
import { createTracker } from '@offlegacy/event-tracker'
const [Track] = createTracker({...})
function App() {
return (
<Track.Provider initialContext={{}}>
{/* Your app content */}
</Track.Provider>
)
}
Props
initialContext: unknown
- Initial context value
Last updated on