When using React libraries the onChange method can be used to pass state to the parent component like this:
onChange
export class Parent extends React.Com