deer / client /src /actions /feedback.js
linuxrun's picture
Upload 120 files
181e22f verified
Raw History Blame Contribute Delete
236 Bytes
import axios from 'axios';
export function sendHello (msg, callback = () => {}) {
return (dispatch) => {
axios.post('/api/hello', {
msg,
})
.then((res) => {
console.log('## res is: ', res.data)
});
};
}