Where to get props and set props in a functional component in React Js?

props data coming from the parent component

const [state, setState] = useState({

reportTypesVal: { label: "", value: "" } || props?.reportTypesVal});

Why I’m unable to set data like this to reportTypesVal?
If I try to set data in useEffect It doesn’t set the value to reportTypesVal.
How can I do this?