UNPKG

use-sync-external-store

Version:

Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.

43 lines 1.25 kB
{ "name": "use-sync-external-store", "description": "Backwards compatible shim for React's useSyncExternalStore. Works with any React that supports hooks.", "version": "1.5.0", "exports": { ".": "./index.js", "./with-selector": "./with-selector.js", "./with-selector.js": "./with-selector.js", "./shim": { "react-native": "./shim/index.native.js", "default": "./shim/index.js" }, "./shim/index.js": "./shim/index.js", "./shim/index.native": "./shim/index.native.js", "./shim/index.native.js": "./shim/index.native.js", "./shim/with-selector": "./shim/with-selector.js", "./shim/with-selector.js": "./shim/with-selector.js", "./package.json": "./package.json" }, "repository": { "type": "git", "url": "https://github.com/facebook/react.git", "directory": "packages/use-sync-external-store" }, "files": [ "LICENSE", "README.md", "index.js", "index.native.js", "with-selector.js", "with-selector.native.js", "shim/", "cjs/" ], "license": "MIT", "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "react-17": "npm:react@^17", "react-dom-17": "npm:react-dom@^17" } }