-text">(valueId: ValueId) =>
  useValue&lt;ValueId>(valueId, STORE_ID);
</span></code></pre><p>This means that the rest of the app can use <a href="/api/store/type-aliases/store/values/"><code>Values</code></a> from the <a href="/api/the-essentials/creating-stores/store/"><code>Store</code></a> with correct types, <em>and</em> the implementation details of the <a href="/api/the-essentials/creating-stores/store/"><code>Store</code></a> are encapsulated in the single file. For more complex applications, it re