From 17bc77a243a712b117daf214519608ba4f415fed Mon Sep 17 00:00:00 2001 From: gpbl Date: Sun, 15 Dec 2024 07:56:25 -0500 Subject: [PATCH] website: add docs for controlled month --- website/docs/docs/navigation.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/docs/navigation.mdx b/website/docs/docs/navigation.mdx index adccb67bb..ba0aacefe 100644 --- a/website/docs/docs/navigation.mdx +++ b/website/docs/docs/navigation.mdx @@ -37,7 +37,7 @@ import { useState } from "react"; import { DayPicker } from "react-day-picker"; export function Controlled() { - const [month, setMonth] = useState(new Date()); + const [month, setMonth] = useState(new Date(2024, 9)); // Start from October 2024 return ; } ```