Skip to content

Commit

Permalink
Merge pull request #1719 from SpainTrain/patch-1
Browse files Browse the repository at this point in the history
docs(knobs) Add caveat about date defaultValue
  • Loading branch information
ndelangen authored Aug 23, 2017
2 parents c6a690e + d98f5e8 commit 2b9d905
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/knobs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ const defaultValue = new Date('Jan 20 2017');
const value = date(label, defaultValue);
```

> Note: the default value must not change - e.g., do not do `date('Label', new Date())` or `date('Label')`
### withKnobs vs withKnobsOptions

If you feel like this addon is not performing well enough there is an option to use `withKnobsOptions` instead of `withKnobs`.
Expand Down

0 comments on commit 2b9d905

Please sign in to comment.