@streame/use-go-play-with
v1.1.0
Published
React hook for interacting with GoPlayWith
Downloads
3
Readme
useGoPlayWith
A react hook for interacting with GoPlayWith gaming site and app.
Example
import React from "react";
import { useGoPlayWith } from "@streame/use-go-play-with";
const apiKey = "xxx-xxx-xxx-xxx";
const MyComponent: React.FC = () => {
const { getUser, endTurn, endGame } = useGoPlayWith(apiKey);
return (
...
)
}
export default MyComponent;