hero background

Speaker's Profile

Akash Hamirwasia

Akash Hamirwasia

SDE-1, Razorpay

Twitter

About Me

"I'm a software engineer at Razorpay and I love building products on the web with great user experience. I'm an open-source enthusiast and also the author of Blaze, UnTab, and Diode projects. In my free time, you'll find me trying to build yet another side project or playing tennis."

About the session

Calm down your overreactive forms with uncontrolled components

Forms are one of the most common and important parts of any web app. A poorly optimized form can cause a jarring experience to the user who is trying to fill it because of the lags and slow feedback times. Unfortunately, most React tutorials online suggest using state to store data of the form fields and change them on every keystroke. This is kind of shooting yourself on the foot because as the form grows, the state updates also increase causing unwanted re-renders which end up slowing your UI.

This is a problem I faced in one of my projects where the form was very large and had poor feedback time because it was causing wasted re-renders. I found the solution to this problem was using uncontrolled form fields and using a library like react-hook-form that makes it easy to use uncontrolled form fields without giving up on reactive features.

In this talk, I’ll be showing how to build a similar API to react-hook-form that leverages uncontrolled form fields to considerably improve the performance of a React form. The best part is that this approach also does not give up on reactivity features a form might need on input change while still providing an easy and ergonomic API.

23th Sept 2022

05:15 pm - 05:45 pm

SEE FULL SCHEDULE

Book A Ticket