@hyperapp/http

Make HTTP requests from Hyperapp.

Usage no npm install needed!

<script type="module">
  import hyperappHttp from 'https://cdn.skypack.dev/@hyperapp/http';
</script>

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

License

MIT