reactatouille
Version:
Reactatouille is a command-line tool to help quickly start and build a new React project, using Redux, Webpack, Gulp (You can add your own tasks, yo!), HMR/Hot Module Reload, Sass (architecture best practices), Jest, Enzyme, popmotion, Redux devtools (bro
18 lines (15 loc) • 320 B
JavaScript
import axios from 'axios'
import config from 'config'
class MyService {
static fetchThat (param) {
const URL = 'google.com'
const PROMISE = axios({
method: 'get',
url: URL,
responseType: 'json'
})
.then((response) => response.data)
return PROMISE
}
}
export default MyService