Skip to content

Commit

Permalink
getDerivedStateFromProp return null if not change
Browse files Browse the repository at this point in the history
A valid state object (or null) must be returned. You have returned undefined.
  • Loading branch information
yoyo837 authored and afc163 committed Jul 22, 2018
1 parent f796618 commit f728fbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/date-picker/createPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default function createPicker(TheCalendar: React.ComponentClass): any {
showDate: nextProps.value,
};
}
return null;
}

private input: any;
Expand Down

0 comments on commit f728fbe

Please sign in to comment.