From 00abb04c028eeb9bb30a87c9b6cd92d3c4fd597d Mon Sep 17 00:00:00 2001 From: Tim Chen Date: Wed, 14 Feb 2018 11:22:06 -0500 Subject: [PATCH] Field.children can be a function or a node (#426) --- src/Field.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Field.tsx b/src/Field.tsx index 7be4c5ae4..88a0402b0 100644 --- a/src/Field.tsx +++ b/src/Field.tsx @@ -61,7 +61,7 @@ export interface FieldConfig { /** * Children render function {props => ...}) */ - children?: ((props: FieldProps) => React.ReactNode); + children?: ((props: FieldProps) => React.ReactNode) | React.ReactNode; /** * Validate a single field value independently