@utilityjs/use-isomorphic-layout-effect
Version:
A React hook that schedules a `React.useLayoutEffect` with a fallback to a `React.useEffect` for environments where layout effects should not be used (such as server-side rendering).
29 lines (28 loc) • 858 B
JSON
{
"name": "@utilityjs/use-isomorphic-layout-effect",
"version": "1.0.2",
"description": "A React hook that schedules a `React.useLayoutEffect` with a fallback to a `React.useEffect` for environments where layout effects should not be used (such as server-side rendering).",
"sideEffects": false,
"module": "./esm/index.js",
"main": "./index.js",
"types": "./index.d.ts",
"license": "MIT",
"repository": {
"type": "git",
"url": "git@github.com:mimshins/utilityjs.git",
"directory": "src/useIsomorphicLayoutEffect"
},
"homepage": "https://github.com/mimshins/utilityjs/tree/main/src/hook/useIsomorphicLayoutEffect",
"peerDependencies": {
"react": ">=16.8"
},
"keywords": [
"javascript",
"typescript",
"react",
"react hook",
"layout effect",
"isomorphic",
"isomorphic layout effect"
]
}