O'Reilly logo

Developing a React Edge: The JavaScript Library for User Interfaces by The League of Extraordinary Developers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Forms

Forms are an essential part of any application that requires even modest input from their users. Traditionally in one page apps, forms are hard to get “right,” since they are littered with changing state from the user. Managing this state is complex and often buggy. React.js helps you manage state in your applications, and this also extends to your forms.

By now you will have realized that predictability and testability are central aspects of React.js components. Given the same props and state, any React.js component should render exactly the same every time. Forms are no exception.

There are two types of form components in React.js: Controlled and Uncontrolled. In this chapter you will learn what the differences between Controlled ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required