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);