From 6f0d6f587d453b476dfb873d7e1573078afe1440 Mon Sep 17 00:00:00 2001 From: Alex Zherdev Date: Thu, 26 Jul 2018 23:36:00 -0700 Subject: [PATCH] Update docs --- docs/rules/no-children-prop.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/no-children-prop.md b/docs/rules/no-children-prop.md index c4607ae33b..00e01fdb82 100644 --- a/docs/rules/no-children-prop.md +++ b/docs/rules/no-children-prop.md @@ -45,7 +45,7 @@ React.createElement("div", 'Child 1', 'Child 2') ### `allowFunctions` -When `true`, passing a function in the children prop is preferred. +When `true`, and passing a function as `children`, it must be in prop position and not child position. The following patterns are considered warnings: