An open API service indexing awesome lists of open source software.

https://github.com/agung96tm/react-jixie-hook

This package is a library for integrate jixie analytics in your react project
https://github.com/agung96tm/react-jixie-hook

hackoctoberfest

Last synced: 8 months ago
JSON representation

This package is a library for integrate jixie analytics in your react project

Awesome Lists containing this project

README

          

# React Jixie Hook
[![Build Status](https://app.travis-ci.com/agung96tm/react-jixie-hook.svg?branch=main)](https://app.travis-ci.com/agung96tm/react-jixie-hook)

This package is a library for integrate jixie analytics in your react project and inspired by [react-gtm-hook](https://github.com/elgorditosalsero/react-gtm-hook).

## Getting Started
In your React project run

```
npm i --save react-jixie-hook
```

## How to use

```jsx
import { JixieProvider, useJixieDispatch } from 'react-jixie-hook';

const App = () => {
const jixieParams = {
id: 'jixie-123',
}

return (





)
}

const LoginView = () => {
const sendDataToJixie = useJixieDispatch()
const handleClick = () => sendDataToJixie({ event: 'login', value: 'imAwesome' });

return (


Login


Login

)
}
```

## Contributors






Agung Yuliyanto


💻