@@ -182,7 +182,7 @@ to configure a realm or exposing more than one realm, refer to their respective
182182Working with Providers using Hooks
183183----------------------------------
184184
185- To use the Provider's context in your app's components, you can use hooks.
185+ To use the Provider's context in your app's components, you can use :react.dev:` hooks <docs/hooks-intro.html>` .
186186
187187Hooks act as functions used to access states in your app. React offers built-in hooks you can
188188use either on their own or to build custom hooks.
@@ -315,6 +315,28 @@ use in any wrapped component.
315315
316316 .. _react-native-use-auth:
317317
318+ useApp()
319+ ~~~~~~~~
320+
321+ .. code:: typescript
322+ :copyable: false
323+ :caption: Type signature
324+
325+ useApp<FunctionsFactoryType, CustomDataType>(): Realm.App<FunctionsFactoryType, CustomDataType>
326+
327+ *Example*
328+
329+ The ``useApp()`` hook provides access to a :js-sdk:`Realm.App <classes/App.html>`
330+ instance.
331+
332+ .. include:: /examples/generated/react-native/v12/use-app.snippet.import-use-app.tsx.rst
333+ .. include:: /examples/generated/react-native/v12/use-app.snippet.use-app.tsx.rst
334+
335+ *Returns*
336+
337+ - ``Realm.App``
338+ An instance of the current ``Realm.App`` created by ``AppProvider``.
339+
318340 useAuth()
319341 ~~~~~~~~~
320342
@@ -675,28 +697,6 @@ use in any wrapped component.
675697 - ``restArgs``. Additional arguments that you need to pass to your custom
676698 reset password function.
677699
678- useApp()
679- ~~~~~~~~
680-
681- .. code:: typescript
682- :copyable: false
683- :caption: Type signature
684-
685- useApp<FunctionsFactoryType, CustomDataType>(): Realm.App<FunctionsFactoryType, CustomDataType>
686-
687- *Example*
688-
689- The ``useApp()`` hook provides access to a :js-sdk:`Realm.App <classes/App.html>`
690- instance.
691-
692- .. include:: /examples/generated/react-native/v12/use-app.snippet.import-use-app.tsx.rst
693- .. include:: /examples/generated/react-native/v12/use-app.snippet.use-app.tsx.rst
694-
695- *Returns*
696-
697- - ``Realm.App``
698- An instance of the current ``Realm.App`` created by ``AppProvider``.
699-
700700 .. tab:: UserProvider Hooks
701701 :tabid: user-provider-hooks
702702
@@ -746,7 +746,7 @@ The ``createRealmContext()`` method creates a :reactjs:`React Context
746746- A :reactjs:`Context Provider <docs/context.html#contextprovider>` (referred to
747747 as ``RealmProvider`` elsewhere) component that wraps around child components
748748 and provides them with access to hooks.
749- - Various prebuilt :reactjs :`Hooks <docs/ hooks-intro.html >` that access the
749+ - Various prebuilt :react.dev :`Hooks <reference/react/ hooks>` that access the
750750 configured realm.
751751
752752For a detailed guide, refer to :ref:`Expose More Than One Realm
0 commit comments