I'm trying to set the starting date of React Multi Date picker. Docs refrenced here: (https://shahabyazdi.github.io/react-multi-date-picker/min-&-max-date/)
I can see within the docs they've used
const [date, setDate] = useState("2020/12/04")
which set an active date to Dec. 2020. However, my dates are created from querying a list of dates, finding a minimum and storing it into a variable. The variable isn't defined when the useState is called, and I can't place the useState later due to hook rendering errors.
Is there another way to do this that I'm missing? Thanks in advance