MCPcopy Create free account
hub / github.com/adobe/react-spectrum / DatePicker

Function DatePicker

packages/react-aria-components/test/Calendar.test.js:647–654  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

645
646 it('should not become focused just by setting the focused date', async () => {
647 let DatePicker = () => {
648 let state = useContext(CalendarStateContext);
649 return (
650 <Button onPress={() => state.setFocusedDate(new CalendarDate(2020, 3, 3))}>
651 Set focused date
652 </Button>
653 );
654 };
655
656 let MyCalendar = () => {
657 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected