UNPKG

use-sync-external-store

Version:

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

14 lines (12 loc) 387 B
/** * @license React * use-sync-external-store.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict"; var useSyncExternalStore = require("react").useSyncExternalStore; exports.useSyncExternalStore = useSyncExternalStore;