(
<Form
onSubmit={onSubmit}
subscription={{ dirty: true }}
initialValues={{ foo: 'bar' }}
>
{({ handleSubmit }) => (
<form onSubmit={handleSubmit}>
<Field name="foo" component="input" />
<button type="submit">Submit</button>
</form>
)}
</Form>
)