Skip to content

Instantly share code, notes, and snippets.

@sonicoder86
Created April 15, 2020 18:26
Show Gist options
  • Save sonicoder86/6e7e92914112e46f443604e64d592121 to your computer and use it in GitHub Desktop.
Save sonicoder86/6e7e92914112e46f443604e64d592121 to your computer and use it in GitHub Desktop.
React Testing Crash Course - part 14
const onModify = async ({ commit }, info) => {
const response = await axios.post('https://example.com/api', { info });
commit('modify', { info: response.body });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment