💩 f*ck react

This commit is contained in:
naiba
2025-10-02 17:15:20 +08:00
parent cb749c6d16
commit ec6511bcb8
31 changed files with 320 additions and 317 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import * as React from "react"
import { useState, useEffect } from "react"
export function useMediaQuery(query: string) {
const [value, setValue] = React.useState(false)
const [value, setValue] = useState(false)
React.useEffect(() => {
useEffect(() => {
function onChange(event: MediaQueryListEvent) {
setValue(event.matches)
}