# razzle-examples-with-hyperapp

> ## How to use

Latest version **3.0.0** (published 2019-04-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install razzle-examples-with-hyperapp
pnpm add razzle-examples-with-hyperapp
yarn add razzle-examples-with-hyperapp
bun add razzle-examples-with-hyperapp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2019-04-16 |
| First published | 2018-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 38.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jaredpalmer |

## Links

- npm: https://www.npmjs.com/package/razzle-examples-with-hyperapp
- npm.io page: https://npm.io/package/razzle-examples-with-hyperapp

## Dependencies (3)

- [express](https://npm.io/package/express.md) ^4.15.2
- [hyperapp](https://npm.io/package/hyperapp.md) ^1.2.5
- [@hyperapp/render](https://npm.io/package/@hyperapp/render.md) ^2.0.0

## Recent versions

- 3.0.0 (latest) — 2019-04-16
- 3.0.0-alpha.2 (next) — 2019-01-07
- 3.0.0-alpha.1 — 2019-01-03
- 2.4.1 — 2019-01-03
- 3.0.0-alpha.0 — 2018-11-14
- 2.4.0 — 2018-07-30
- 2.2.0 — 2018-06-15
- 2.1.1 — 2018-06-15
- 2.1.0 — 2018-06-12
- 2.0.4 — 2018-06-06
- 2.0.3 — 2018-06-04
- 2.0.2 — 2018-06-01
- 2.0.1 — 2018-06-01
- 2.0.0 — 2018-05-30
- 2.0.0-alpha.12 — 2018-04-23
- … 5 more at https://npm.io/package/razzle-examples-with-hyperapp/versions

## README

# Razzle Hyperapp Example

## How to use

Download the example [or clone the whole project](https://github.com/jaredpalmer/razzle.git):

```bash
curl https://codeload.github.com/jaredpalmer/razzle/tar.gz/master | tar -xz --strip=2 razzle-master/examples/with-hyperapp
cd with-hyperapp
```

Install it and run:

```bash
yarn install
yarn start
```

## Idea behind the example

This shows how to setup [Hyperapp](https://github.com/hyperapp/hyperapp/) with Razzle.

Here is a list of changes from Razzle's base template:

1.  Install `babel-plugin-transform-react-jsx` as a devDependency.
2.  Extend Razzle's babel config with a custom `.babelrc`
3.  Install `hyperapp` and `"@hyperapp/render`
4.  Remove `react`, `react-dom`, `react-router-dom` entirely
5.  Update `server.js` to use `@hyperapp/render`'s `withRender` function. Also remove the `<div id="root">` element from our html template since Hyperapp can render to the body.
6.  Add a `main.js` file which exports the essential pieces of Hyperapp, which are the `state`, `actions`, and `view`. These are to be shared between the `server.js` and `client.js` files.

---
_Source: https://npm.io/package/razzle-examples-with-hyperapp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
