Skip to content

Instantly share code, notes, and snippets.

@Waltari10
Created April 26, 2020 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Waltari10/524e493f628d1bfdbaaea5cdc51a6a5d to your computer and use it in GitHub Desktop.
Save Waltari10/524e493f628d1bfdbaaea5cdc51a6a5d to your computer and use it in GitHub Desktop.
const handleHenchmanChange = useCallback((henchman, id) => {
dispatchHenchmen({
type: actions.UPDATE,
payload: {
id,
henchman,
},
});
}, [dispatchHenchmen]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment