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/3beeda745fec8cb7dccc111c33b1c3a2 to your computer and use it in GitHub Desktop.
Save Waltari10/3beeda745fec8cb7dccc111c33b1c3a2 to your computer and use it in GitHub Desktop.
const addHenchman = useCallback(id => {
dispatchHenchmen({
type: actions.ADD,
payload: id,
});
}, [dispatchHenchmen]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment