From da283ec8ff6c47be08881e471fa105c1883c85ec Mon Sep 17 00:00:00 2001 From: Iurii Kucherov Date: Sun, 12 Nov 2017 19:51:34 +0100 Subject: [PATCH] Update reference-react.md (#276) Hi guys, I was reading docs on `React.Children.only()` method and saw this statement `Otherwise this method throws.` and it seemed a bit unclear for me what it supposed to throw. Please let me know if this PR makes sense. Thank you! --- content/docs/reference-react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-react.md b/content/docs/reference-react.md index 4b1885aed..7cbd4a9d3 100644 --- a/content/docs/reference-react.md +++ b/content/docs/reference-react.md @@ -175,7 +175,7 @@ Returns the total number of components in `children`, equal to the number of tim React.Children.only(children) ``` -Verifies that `children` has only one child (a React element) and returns it. Otherwise this method throws. +Verifies that `children` has only one child (a React element) and returns it. Otherwise this method throws an error. > Note: >