You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use selectsRange props. If I pass startDate and endDate props, I get a type error because it expects Date or undefined type. However, the initial state for startDate and endDate is null. However, for a normal state (without selectsRange), the null type does not throw a type error.
I use selectsRange props. If I pass startDate and endDate props, I get a type error because it expects Date or undefined type. However, the initial state for startDate and endDate is null. However, for a normal state (without selectsRange), the null type does not throw a type error.
Example
I can solve this problem by adding undefined to the props, but it's not the best solution
The text was updated successfully, but these errors were encountered: