From ad2d782c4d006a20ebf1edb0a15d1257be487d12 Mon Sep 17 00:00:00 2001 From: Varun Date: Sat, 7 Apr 2018 21:43:22 -0400 Subject: [PATCH] fix: typo in challenges/react.json (#17037) --- challenges/03-front-end-libraries/react.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/03-front-end-libraries/react.json b/challenges/03-front-end-libraries/react.json index 99864d864f..e29f939f14 100644 --- a/challenges/03-front-end-libraries/react.json +++ b/challenges/03-front-end-libraries/react.json @@ -1603,7 +1603,7 @@ "description": [ "The last challenge showed that React can control the internal state for certain elements like input and textarea, which makes them controlled components. This applies to other form elements as well, including the regular HTML form element.", "
", - "The MyForm component is set up with an empty form with a submit handler. The submit handler will be called when the formed is submitted.", + "The MyForm component is set up with an empty form with a submit handler. The submit handler will be called when the form is submitted.", "We've added a button which submits the form. You can see it has the type set to submit indicating it is the button controlling the form. Add the input element in the form and set its value and onChange() attributes like the last challenge. You should then complete the handleSubmit method so that it sets the component state property submit to the current input value in the local state.", "Note:  You also must call event.preventDefault() in the submit handler, to prevent the default form submit behavior which will refresh the web page.", "Finally, create an h1 tag after the form which renders the submit value from the component's state. You can then type in the form and click the button (or press enter), and you should see your input rendered to the page."