How to automatically call form submit action after the form is rendered?

I have a form that I initialize with some props. I need to call the submit method once the form is rendered. I was thinking about lifecycle hooks. Any help?
Was this page helpful?