Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function StaticPickers() {
const [value, handleDateChange] = useState(new Date());
// you can past mostly all available props, like minDate, maxDate, autoOk and so on
const { pickerProps, wrapperProps } = useStaticState({
value,
onChange: handleDateChange,
});
return (
<>
<div>
<button>
Clear date ({value && value.toJSON()})
</button>
</div>