Below is my code.
CHILD COMPONENT
  const onSave = () => {
    var val = value
    props.onSave();
  }
<div onClick={() => { onSave() }}>
            <CheckButton variant="contained" text-align='center' />
          </div>
PARENT COMPONENT
export const Card = (props) => {
    const onSave = (val) => { [I WANT TO ACCESS val within here] }
}
<TextInputContainer onSave={() => onSave()} />
Is there any way I can access that variable val inside the parent component? The code is truncated big-time. The actual code uses Redux.
 
     
    