|
Download wp-calypso/client/lib/analytics/track-component-view/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 664 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/analytics/track-component-view/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/analytics/track-component-view/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/analytics/track-component-view/README.md
664 Bytes
Track Component View
<TrackComponentView /> is a React component used to help track when container components are seen by a user.
This is useful in cases where a container component conditionally renders. If children are
not rendered, this analytics event will not be fired.
Usage
Render the component passing one or both of:
- Tracks: An
eventNamestring andeventPropertiesobject - MC Stats:
statGroupandstatNamestrings
<ContainerComponent>
<TrackComponentView eventName={ eventName } eventProperties={ eventProperties } />
</ContainerComponent>;
It does not accept any children, nor does it render any elements to the page.