mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 00:40:21 +00:00
💩 f*ck react
This commit is contained in:
1 parent
61186143bd
commit
4806ff35fe
31 files changed
+320
-317
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user