Check next example. Integrating directly into development tools, workflows, and automation pipelines, Snyk makes it easy for teams to find, prioritize, and fix security vulnerabilities in code, dependencies, containers, and infrastructure as code. Below we will have a simple input field. It's one of the most important elements and has many different types. Enthusiasm for technology & like learning technical. In the above example, we are clearing the email, password input field values whenever a user clicks on the login . If you are using controlled components, it means your form (input) data is controlled by the react state, so that you can clear an input field value by assigning an empty string '' to the react state. Both are used to proceeds clear concept on input fields. bind(): Deprecated in version 3.0.