Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.

Commit 1fce1ab

Browse files
committed
version bump
1 parent 477f93a commit 1fce1ab

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,21 @@ For example:
138138

139139
// To access the File object use `getFileFromRef` helper function:
140140
let myFile = getFileFromRef(myFileRef);
141+
142+
// Example callback:
143+
const myCallback = () => {
144+
const myFile = getFileFromRef(myFileRef);
145+
const formData = new FormData();
146+
formData.append("tmyFile", myFile);
147+
}
148+
149+
// then add to the RBF's Form component:
150+
<Form
151+
callback={myCallback}
152+
// ... .etc
141153
````
142154

155+
143156
## Form Consumer
144157
RBF's provides the `FormConsumer`, which gives access to field information.
145158
Below is an example of a form containing a single text input field.

0 commit comments

Comments
 (0)