I would like to know how to implement time delay in React functional component. Pseudocode is given below
const staring_function = () => { return( //