I have a form which is built up of differing types of inputs, utilising the mui library. I want to take the values of differing types of input components, and store them within a single state in a Grandparent component. I am able to handle different types of inputs if they have the same Event function structure (i.e. (e: React.ChangeEvent<HTMLInputElement>) => void), but I am now using the AutoComplete component, and since it has a different onChange event handler, I am unsure as to how I would be able to process it's change within a single onChange handler.
Please look at this codesandbox link for the rough structure of the problem. I would like the input of Child3 to be handled within the getNameAndValueFromEvent() method within valueStates.ts (which is called in Grandparent.tsx).