Analytics next - Listeners

import { AnalyticsListener } from '@atlaskit/analytics-next';

An AnalyticsListener wraps your app and listens to any events which are fired within it.

AnalyticsListener Props

children default.ReactNode

Children!

default.ReactNode

channel string

The channel to listen for events on.

onEvent function required

A function which will be called when an event is fired on this Listener's channel. It is passed the event and the channel as arguments.

function
event,
channel
=> undefined