Switch from preact to react

This commit is contained in:
2025-01-02 10:36:58 -06:00
parent e8fe3e8ec9
commit e61c4715e1
6 changed files with 203 additions and 280 deletions

View File

@@ -2,7 +2,7 @@ import Badge from "@/components/Badge";
import Emboldened from "@/components/Emboldened";
import useSocket from "@/components/useSocket";
import { cn, plural, toHex, type ClassValue } from "@/util";
import { useRef, useState } from "preact/hooks";
import { useRef, useState } from "react";
type DemoProps = {
class?: ClassValue;

View File

@@ -1,4 +1,4 @@
import { useEffect, useRef, useState } from "preact/hooks";
import { useEffect, useRef, useState } from "react";
interface Download {
token: number;