README
@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
})