mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Merge pull request #15899 from agriffis/fix/resetArgs-example-snippet
Fix resetArgs example snippet
This commit is contained in:
commit
c548123eca
@ -9,7 +9,7 @@ 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