Skip to main content

Introduction

Welcome! This documentation will help you master the capabilities of the React SDK of the product and quickly apply them in your project

Installation

npm install gmfy-sdk

Usage

  1. Get the API key, server URL and user ID for which requests will be sent
  2. Connect component provider and pass the necessary data to it
import {GMFYProvider} from 'gmfy-sdk'

const GMFY_CONFIG = {
url: "API_URL",
apiKey: "API_KEY",
userId: '1123',
updateInterval: 10000,
language: 'en'
}

const App = () => <GMFYProvider config={GMFY_CONFIG}>
{/* your application */}
</GMFYProvider>
  1. Use a component or hook