diff --git a/docs/src/content/docs/package/npm-react.md b/docs/src/content/docs/package/npm-react.md index 69dd96138..e17a8a19b 100644 --- a/docs/src/content/docs/package/npm-react.md +++ b/docs/src/content/docs/package/npm-react.md @@ -239,7 +239,7 @@ return ( ## Use update -`useUpdate` is a similar to `useEffect` hook, but it allows you to subscribe to atoms and receive it values in the callback. Important semantic difference is that subscription to atoms works as [`onChange` hook](/handlbook#lifecycle) and your callback will call during transaction, so you need to schedule an effects, but could mutate an atoms without batching. Subscriptions to a values works like regular `useEffect` hook. +`useUpdate` is a similar to `useEffect` hook, but it allows you to subscribe to atoms and receive it values in the callback. Important semantic difference is that subscription to atoms works as [`onChange` hook](/handbook#lifecycle) and your callback will call during transaction, so you need to schedule an effects, but could mutate an atoms without batching. Subscriptions to a values works like regular `useEffect` hook. The most common use case for this hook is to synchronize some state from a props or context to an atom. diff --git a/packages/npm-react/README.md b/packages/npm-react/README.md index 1ece790b5..0e98f8493 100644 --- a/packages/npm-react/README.md +++ b/packages/npm-react/README.md @@ -230,7 +230,7 @@ return ( ## Use update -`useUpdate` is a similar to `useEffect` hook, but it allows you to subscribe to atoms and receive it values in the callback. Important semantic difference is that subscription to atoms works as [`onChange` hook](https://www.reatom.dev/handlbook#lifecycle) and your callback will call during transaction, so you need to schedule an effects, but could mutate an atoms without batching. Subscriptions to a values works like regular `useEffect` hook. +`useUpdate` is a similar to `useEffect` hook, but it allows you to subscribe to atoms and receive it values in the callback. Important semantic difference is that subscription to atoms works as [`onChange` hook](https://www.reatom.dev/handbook#lifecycle) and your callback will call during transaction, so you need to schedule an effects, but could mutate an atoms without batching. Subscriptions to a values works like regular `useEffect` hook. The most common use case for this hook is to synchronize some state from a props or context to an atom.