path.split bukan fungsi inputref useform

<input ref={register({ required: true })} name="test" />
Frightened Fox