From 5257f4ba8aa9f975718b5bf6a701687e08d05942 Mon Sep 17 00:00:00 2001 From: asvarcas Date: Tue, 8 Sep 2020 16:35:27 -0300 Subject: [PATCH] Added react-final-form hooks links --- docs/Inputs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Inputs.md b/docs/Inputs.md index d71bee93cb3..86c14a8e06a 100644 --- a/docs/Inputs.md +++ b/docs/Inputs.md @@ -1582,7 +1582,7 @@ const LatLngInput = () => ( **Tip**: Material-ui's `` component already includes a label, so you don't need to use `` in this case. -`useField()` returns two values: `input` and `meta`. To learn more about these props, please refer to [the `useField()` hook documentation](https://final-form.org/docs/react-final-form/api/useField) in the react-final-form website. +`useField()` returns two values: `input` and `meta`. To learn more about these props, please refer to the [`useField`](https://final-form.org/docs/react-final-form/api/useField) hook documentation in the react-final-form website. Instead of HTML `input` elements or material-ui components, you can use react-admin input components, like `` for instance. React-admin components already use `useField()`, and already include a label, so you don't need either `useField()` or `` when using them: @@ -1716,7 +1716,7 @@ const OrderEdit = (props) => ( - `scopedFormData`: an object containing the current values of the currently rendered item from the `ArrayInput` - `getSource`: a function which will translate the source into a valid one for the `ArrayInput` -Would you need to update an input when another one changes, use the `useForm` hook from `react-final-form`. For example, a country input that resets a city input on change. +Would you need to update an input when another one changes, use the [`useForm`](https://final-form.org/docs/react-final-form/api/useForm) hook from `react-final-form`. For example, a country input that resets a city input on change. ```jsx import * as React from 'react';