vict-shevchenko / reactive-mobx-form

Reactive forms for applications running on React and MobX
https://vict-shevchenko.github.io/reactive-mobx-form
MIT License
45 stars 4 forks source link

Implement Form.submit() method #18

Closed vladkampov closed 5 years ago

vladkampov commented 6 years ago

I'd like to have Form.submit() method for form submitting by external components or different parts of the application.

vict-shevchenko commented 5 years ago

Hi @vladkampov 👋. Hope you still need this. Starting from v 0.10.2 you can use withFormData('formName')(YourComponent)

const YourComponent = ({submit}) => ()