idirsun
idirsun

Reputation: 604

React Final Form, use <Field/> outside <Form/>

is there a way to use outside but still connected?

I'm getting Uncaught Error: useField must be used inside of a component.

I like to reference the Form in Field component

I'm getting Uncaught Error: useField must be used inside of a component.

when trying to use outside

Upvotes: 1

Views: 181

Answers (1)

Erik R.
Erik R.

Reputation: 7272

No. <Form/> sets stuff in React context that <Field/> needs.

Upvotes: 1

Related Questions