From bf77058a8744165fee6577f6f15d9a65624b1fa2 Mon Sep 17 00:00:00 2001 From: Kale Date: Mon, 21 Sep 2015 07:17:27 -0600 Subject: [PATCH] make server validation more obvious in docs --- API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API.md b/API.md index 85c1fe9..4d2bc81 100644 --- a/API.md +++ b/API.md @@ -111,7 +111,7 @@ var Form = React.createClass({ ``` Takes a function to run when the submit button has been clicked. -The first argument is the data of the form. The second argument will reset the form. The third argument will invalidate the form by taking an object that maps to inputs. E.g. `{email: "This email is taken"}`. Resetting or invalidating the form will cause **setState** to run on the form element component. +The first argument is the data of the form. The second argument will reset the form. The third argument will invalidate the form by taking an object that maps to inputs. This is useful for server side validation. E.g. `{email: "This email is taken"}`. Resetting or invalidating the form will cause **setState** to run on the form element component. #### onValid() ```html