1.1.0 • Published 5 years ago
@streame/use-go-play-with v1.1.0
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;