forked from all1124/seattle-javascript-401n14
-
Notifications
You must be signed in to change notification settings - Fork 0
Reading 27
Morgan edited this page Jan 21, 2020
·
3 revisions
React recommends using controlled components over refs to implement forms. Refs offer a backdoor to the DOM, which might tempt you to use it to do things the jQuery way. Controlled components, on the other hand, are more straightforward — the form data is handled by a React component. However, if you want to integrate React with a non-React project, or create a quick and easy form for some reason, you can use a ref.