Skip to content

Instantly share code, notes, and snippets.

@Nickman87
Nickman87 / Leaderboard.tsx
Created July 28, 2022 14:29
keepthescore.co React component
import { FC, useEffect, useState } from "react";
type LeaderboardProps = {
boardToken: string;
};
const Leaderboard: FC<LeaderboardProps> = ({ boardToken }) => {
const [height, setHeight] = useState("80px");
const [isReady, setIsReady] = useState(false);