These controls should be left to the user using the component and not set with internal state. Using your own internal state does not allow the user to validate any input going into the component, ie cannot control maximum character length, types of characters allowed, etc.
These controls should be left to the user using the component and not set with internal state. Using your own internal state does not allow the user to validate any input going into the component, ie cannot control maximum character length, types of characters allowed, etc.