The following code demonstrates how to add another attributes to any of the input components. The first step is to implement the ref of the component. Having the ref, use the
setAttribute functionality on it and add the desired attribute and value.
The example includes adding
form attribute in the Input, Rating and RangeSlider components.