RBF's provides a function that returns a React ref to access your file object.
To use, simply assign the returned ref from the createFileRef function to a
variable & pass this variable to FileField's ref prop.
example
import {createFileRef, FileField, isFile, getFileFromRef} from"react-bare-forms";
const myFileRef = createFileRef();
<FileFieldref={myFileRef}hint="Must be a file"labeltext="Upload your file"name="myFileTest"validators={[isFile()]}
/>
RBF's provides a function that returns a React ref to access your file object. To use, simply assign the returned ref from the createFileRef function to a variable & pass this variable to FileField's ref prop.
import {createFileRef, FileField, isFile, getFileFromRef} from "react-bare-forms"; const myFileRef = createFileRef(); <FileField ref={myFileRef} hint="Must be a file" labeltext="Upload your file" name="myFileTest" validators={[isFile()]} />