mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
Merge pull request #15899 from agriffis/fix/resetArgs-example-snippet
Fix resetArgs example snippet
This commit is contained in:
commit
c548123eca
@ -9,8 +9,8 @@ const [args, updateArgs, resetArgs] = useArgs();
|
||||
updateArgs({ key: 'value' });
|
||||
|
||||
// To reset one (or more) args:
|
||||
resetArgs((argNames: ['key']));
|
||||
resetArgs(['key']);
|
||||
|
||||
// To reset all args
|
||||
resetArgs();
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user