React-admin: Missing document for useInput

Created on 6 Dec 2019  路  3Comments  路  Source: marmelab/react-admin

As explained in the doc, I use addField to create custom components: https://marmelab.com/react-admin/Inputs.html#writing-your-own-input-component

However, this generate a deprecation warning: FormField is deprecated, use the useInput hook instead..

So I'm looking for useInput doc but there is no doc. This piece of doc would be appreciated. It's not really a pain to look in the source code but I feel out of the track which is quite worrying!

bug documentation v3

Most helpful comment

react-admin re-exports all the exports from ra-core. We recommend that you always import from react-admin, as the ra-core API may be changed in a non compatible way in a minor release (with a backward compatible change in react-admin to avoid breakage).

All 3 comments

Thanks for reporting

I don't think useInput is exported by react-admin, but by ra-core, or am I wrong?

react-admin re-exports all the exports from ra-core. We recommend that you always import from react-admin, as the ra-core API may be changed in a non compatible way in a minor release (with a backward compatible change in react-admin to avoid breakage).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ericwb picture ericwb  路  3Comments

Dragomir-Ivanov picture Dragomir-Ivanov  路  3Comments

Kmaschta picture Kmaschta  路  3Comments

rkyrychuk picture rkyrychuk  路  3Comments

kikill95 picture kikill95  路  3Comments