We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e70c4d commit 3da2e91Copy full SHA for 3da2e91
website/versioned_docs/version-8.10.1/advanced-guides/custom-modifiers.mdx
@@ -71,12 +71,12 @@ The `today` modifier is added to the current date:
71
72
```tsx
73
function ModifiersToday() {
74
- const initialFooter = <p>Try clicking the today’s date.</p>;
+ const initialFooter = <p>Try clicking today’s date.</p>;
75
const [footer, setFooter] = useState(initialFooter);
76
77
const handleDayClick: DayMouseEventHandler = (day, modifiers) => {
78
if (modifiers.today) {
79
- setFooter(<p>You clicked the today’s date.</p>);
+ setFooter(<p>You clicked today’s date.</p>);
80
} else {
81
setFooter(initialFooter);
82
}
0 commit comments