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
- Yarn
npm install gmfy-sdk
yarn add gmfy-sdk
Usage
- Get the API key, server URL and user ID for which requests will be sent
- 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>
- Use a component or hook