There are several situations which can cause a nameed component to raise warnings:
Statless componentsreact-formable requires refs on inputs in order to extract their value. Since we can't attach a ref to a stateless component, we are out of luck. Your best option is to wrap the stateless component in a statefull component that tracks the value of your input.
Decorated components
When you decorate a component your instance functions on your component are hidden beneath your decorator. To circumvent this you can hoist getValue if you have control over the decorator.
There are several situations which can cause a
name
ed component to raise warnings:Statless components
react-formable
requiresref
s on inputs in order to extract their value. Since we can't attach aref
to a stateless component, we are out of luck. Your best option is to wrap the stateless component in a statefull component that tracks the value of your input.Decorated components When you decorate a component your instance functions on your component are hidden beneath your decorator. To circumvent this you can hoist
getValue
if you have control over the decorator.