
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-use-ez
Advanced tools
npm publish
import { useTheme, Theme } from "react-use-ez";
const [theme, changeTheme] = useTheme()
<button onClick={() => changeTheme()}>change theme</button>
import { useBattery } from 'react-use-ez'
const battery = useBattery()
import { useHover } from 'react-use-ez'
const [hoverRef, isHovering] = useHover()
<div ref={hoverRef}>{isHovering ? "Hovering" : "Not Hovering"}</div>
import { useCookie } from 'react-use-ez'
const [getCookie, setCookie] = useCookie()
console.log(getCookie("cookie-name"))
<button
onClick={() => {
setCookie("cookie-name", "cookie-value");
}}
>
點擊
</button>
setCookie config
import { useRequest } from 'react-use-ez'
const getUser = (): Promise<any> => {...}
const { loading, data: users, error } = useRequest(getUsers);
import { useFactorial } from 'react-use-ez'
const { result } = useFactorial(3) // 6
import { useMediaQuery } from 'react-use-ez'
const isLargeScreen = useMediaQuery('(min-width: 1024px)')
import { useEyeDropper } from 'react-use-ez'
const { isSupported, sRGBHex, open } = useEyeDropper()
import { useUserInfo } from 'react-use-ez'
const userInfo = useUserInfo()
/**
* ip 位置
*
* city 所在城市
*
* region 所在地區
*
* country 所在國家
*
* loc 經緯度
*
* org 電信公司
*
* timezone 時區
*
* readme 說明
*/
import { useDevice } from 'react-use-ez'
const { isPhone, isAndroid, isMobile, isMac } = useDevice()
import { useBoolean } from 'react-use-ez'
const { value, setTrue, setFalse, toggle } = useBoolean(false)
import { useRemoteConfig } from 'react-use-ez'
const firebaseConfig = {
apiKey: ''
authDomain: ''
projectId: ''
storageBucket: ''
messagingSenderId: ''
appId: ''
}
const message = useRemoteConfig(firebaseConfig, 'config-name')
FAQs
## publish (owner only)
We found that react-use-ez demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.