react-forms icon indicating copy to clipboard operation
react-forms copied to clipboard

withFormValue not working

Open themre opened this issue 9 years ago • 1 comments

I try to implement custom field from scratch, but it's not working. I tried copy/paste the example in readme and I get:

Element type is invalid: expected a string (for built-in components) or a class/function 
(for composite components) but got: object

Also, WithFormValue needs to be renamed to withFormValue (as I get warning in console).

themre avatar Oct 14 '16 14:10 themre

didn't try recently, but does https://github.com/prometheusresearch/react-forms/blob/develop/examples/src/forms/CustomField.js suits your purpose. see https://github.com/prometheusresearch/react-forms#examples for details

bsr203 avatar Oct 14 '16 15:10 bsr203