Created
April 15, 2020 18:26
-
-
Save sonicoder86/6e7e92914112e46f443604e64d592121 to your computer and use it in GitHub Desktop.
React Testing Crash Course - part 14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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