mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 08:50:20 +00:00
💩 f*ck react
This commit is contained in:
1 parent
cb749c6d16
commit
ec6511bcb8
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