Skip to content

marilyn79218/vis-large-app-starter-kit

Repository files navigation

Large App Starter Kit

Develop

VIS_API_HOST={} yarn start

commit checking

  • flowtype
  • eslint for staged files

build checking

  • flowtype
  • eslint

Fetch

this project use whatwg-fetch as fetch polyfill

How

import fetchUtil from 'shared/utils/fetchUtil';

const endpoint = '/books';
const fetchBooks = fetchUtil(endpoint);

fetchBooks.get()
  .then(console.log); // GET /books response

fetchBooks.post({
  body: {
    ids: [1, 2, 3],
  },
  headers: {
    user: 1,
  },
  token,
})
  .then(console.log);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published