js implements some functions of the input component in Element and encapsulates it into a component (example code) Blog