React: Optimizing Forms with Controlled and Uncontrolled Components