DEV Community

Discussion on: React refactor code #1

Collapse
 
sakethkowtha profile image
sakethk

Yes @christianschulze what you said is correct. rest/spread operator only suits for this example. My intention is first it will save typings and next i thought it is more readable. By seeing that snippet once can understand we are using label prop for label and rest of the props for input