Skip to content

Commit 2b913db

Browse files
committed
README.md
1 parent 4cdce1a commit 2b913db

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ function withAJVInput<T>(
111111
}
112112

113113
const Input = withAJVInput(YourOwnInputComponent);
114-
<Input form={form} name="title" />;
114+
115+
// Then somewhere in your component
116+
// ...
117+
return <div>
118+
<Input form={form} name="title" />;
119+
</div>
120+
115121
```
116122
117123
Note: The HOC example provided is just one way to enhance your experience with `use-ajv-form`. We encourage creativity and experimentation to suit your specific needs. For example, employing a factory pattern could streamline the process further. Our philosophy with `use-ajv-form` is its adaptability—it's designed to work seamlessly in any setup, with any architecture.

0 commit comments

Comments
 (0)