Calm down your overreactive forms with uncontrolled components

React IndiaReact India
GoaOpen slides

React India 2022 was held in person this year near the lovely beaches of Goa, India šŸ–. It was a very well-organized conference with some of the best speakers from the industry covering a wide range of topics in React and web development. The audience was extremely enthusiastic to learn new things even with the beaches just a walk away from the venue!

I had submitted my CFP with almost zero expectations. I was confident in my topic, but the past editonā€™s speakers were just too good and I felt the imposter syndrome kicking in to make it seem impossible to get a chance to share the stage with them. Iā€™m really grateful to the panel for considering my talk and giving me this opportunity to share my learnings with the rest of the community.

About the talk

In this talk, I aimed to explore the benefits of uncontrolled components, particularly in building forms. Most forms out there can be more performant than they actually are. This is because they use controlled components with React state for storing form data causing extremely high re-renders! I feel almost 80% of the forms out there donā€™t need controlled components and I hope my talk played its part in changing this.

Uncontrolled components have their own set of downsides, the big one being that you lose reactivity. Reactivity is important in forms from time to time, thatā€™s why you use React in the first place! Hence, I also explored an abstraction in my talk inspired by react-hook-form that leverages uncontrolled components and makes building performant and reactive forms a breeze šŸ™‚

Hereā€™s what Kent had to say about my talk šŸ„¹

Post-conf thoughts

I had a great time at React India 2022 that I can never forget. Not just as a speaker, but also listening to other talks and attending various workshops. Meeting everyone in person(and realizing that they actually exist šŸ˜‚) after the lockdowns at such a great location by the beach for the 3 days, what more can someone ask for? I hope to go back next year again for the conference that just keeps getting better ā€” React India šŸ’™

Hereā€™s a small collection of my pics from the conference

Me and Tejas (@TejasKumar_)
Me and Siddharth (@siddharthkp)
Me and Kent (@kentcdodds)
Me and Bill (@billgil)
Me giving my talk
Me and Ankeet (@ankeetmaini)

Still donā€™t believe how great this conference was?
Check out the after movie for yourself! Maybe youā€™ll find me in there too šŸ˜‡

References