As in title, I want to pass object as props in useEffect hook.
import React, { useState, useEffect, useRef } from "react"; // custom hook to refer