3.0.0 • Published 7 years ago
razzle-examples-with-hyperapp v3.0.0
Razzle Hyperapp Example
How to use
Download the example or clone the whole project:
curl https://codeload.github.com/jaredpalmer/razzle/tar.gz/master | tar -xz --strip=2 razzle-master/examples/with-hyperapp
cd with-hyperappInstall it and run:
yarn install
yarn startIdea behind the example
This shows how to setup Hyperapp with Razzle.
Here is a list of changes from Razzle's base template:
- Install
babel-plugin-transform-react-jsxas a devDependency. - Extend Razzle's babel config with a custom
.babelrc - Install
hyperappand"@hyperapp/render - Remove
react,react-dom,react-router-domentirely - Update
server.jsto use@hyperapp/render'swithRenderfunction. Also remove the<div id="root">element from our html template since Hyperapp can render to the body. - Add a
main.jsfile which exports the essential pieces of Hyperapp, which are thestate,actions, andview. These are to be shared between theserver.jsandclient.jsfiles.
3.0.0
7 years ago
3.0.0-alpha.2
7 years ago
3.0.0-alpha.1
7 years ago
2.4.1
7 years ago
3.0.0-alpha.0
7 years ago
2.4.0
7 years ago
2.2.0
8 years ago
2.1.1
8 years ago
2.1.0
8 years ago
2.0.4
8 years ago
2.0.3
8 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
2.0.0-alpha.12
8 years ago
2.0.0-alpha.11
8 years ago
2.0.0-alpha.10
8 years ago
2.0.0-alpha.9
8 years ago
2.0.0-y.0
8 years ago
2.0.0-alpha.8
8 years ago