I am currently trying to get the value from the materialize datepicker and set it to a state value. I am using a functional component with react hooks. The datepicker has an