From e3c01d6b4b82bdaa9ddac60b9dee51d0cf11d38f Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Sun, 6 Aug 2023 10:56:46 -0600 Subject: [PATCH] docs: use config prop (#225) --- docs/complex-structures.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/complex-structures.md b/docs/complex-structures.md index b9ee008e..cb8a8250 100644 --- a/docs/complex-structures.md +++ b/docs/complex-structures.md @@ -114,7 +114,7 @@ function Example() { {todos.map((todo) => (
  • {/* Pass each item config to TodoFieldset */} - +
  • ))} @@ -122,7 +122,7 @@ function Example() { ); } -function TodoFieldset(config: FieldConfig) { +function TodoFieldset({ config }: { config: FieldConfig }) { const ref = useRef(null); // Both useFieldset / useFieldList accept form or fieldset ref const { title, notes } = useFieldset(ref, config);