react/packages/use-sync-external-store
Sebastian Markbåge 0dedfcc681
Update the exports field (#23257)
* Add .browser and .node explicit entry points

This can be useful when the automatic selection doesn't work properly.

* Remove react/index

I'm not sure why I added this in the first place. Perhaps due to how our
builds work somehow.

* Remove build-info.json from files field
2022-02-08 21:07:26 -05:00
..
npm Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
shim Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
src Revert "update node.js version for CI (#23236)" (#23239) 2022-02-07 03:55:57 +00:00
README.md Set up use-sync-external-store package (#22202) 2021-08-28 13:57:47 -07:00
index.js Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
package.json Update the exports field (#23257) 2022-02-08 21:07:26 -05:00
with-selector.js Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00

README.md

use-sync-external-store

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

Until useSyncExternalStore is documented, refer to https://github.com/reactwg/react-18/discussions/86