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
- Host: GitHub
- URL: https://github.com/agung96tm/react-jixie-hook
- Owner: agung96tm
- License: mit
- Created: 2021-10-10T06:55:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-10T08:55:46.000Z (over 4 years ago)
- Last Synced: 2025-10-11T10:05:42.847Z (8 months ago)
- Topics: hackoctoberfest
- Language: TypeScript
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Jixie Hook
[](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
💻