diff --git a/README.md b/README.md index 3d62d7f..6079108 100644 --- a/README.md +++ b/README.md @@ -177,11 +177,11 @@ const App = () => { ); }; -// Accessing state from the specified scope. Default scope is the closest one +// Accessing state from the specified scope. const Component = () => { // Here, we get the state from the parent scope const [name, setName] = useAppStore('parent').use.name(); - // Here, we get the state from the child scope (default) + // Here, we get the state from the closest scope (default) const onUpdateName = useAppStore().get.onUpdateName().fn; return ( diff --git a/packages/jotai-x/README.md b/packages/jotai-x/README.md index 3d62d7f..6079108 100644 --- a/packages/jotai-x/README.md +++ b/packages/jotai-x/README.md @@ -177,11 +177,11 @@ const App = () => { ); }; -// Accessing state from the specified scope. Default scope is the closest one +// Accessing state from the specified scope. const Component = () => { // Here, we get the state from the parent scope const [name, setName] = useAppStore('parent').use.name(); - // Here, we get the state from the child scope (default) + // Here, we get the state from the closest scope (default) const onUpdateName = useAppStore().get.onUpdateName().fn; return (