Pass form's submit handler as a props and also access the form's state in the submit handler.
Hi Folks, I'm trying to pass submitHandler as a props to a form component using the hooks based approach. How to access the form component state in the submitHandler function in the parent? import React, { useState, useEffect } from "react"; import R...