0.0.2 • Published 5 years ago

@hyperapp/http v0.0.2

Weekly downloads
31
License
MIT
Repository
github
Last release
5 years ago

@hyperapp/http

Make HTTP requests from Hyperapp.

Installation

npm i @hyperapp/http

Usage

import { request } from "@hyperapp/http"

const GotResult = (state, { result }) => ({ ...state, result })

const factor = expression =>
  request({
    url: `https://newton.now.sh/factor/${expression}`,
    expect: "json",
    action: GotResult
  })

License

MIT

0.0.2

5 years ago

0.0.1

5 years ago