Value of input elements in a plugin

Most if not all plugin developers are aware of this, but this can be a good hint for beginners.
If you develop a plugin for an input element how can you give end users access to the value of the input element?

Just add a state “value” to your plugin element.
That’s all.