0.8.1 • Published 9 years ago
razzle-examples-preact v0.8.1
Razzle Preact 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-preact
cd with-preactInstall it and run:
yarn install
yarn startIdea behind the example
This shows how to setup Preact 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
preactandpreact-render-to-string - Remove
react,react-dom,react-router-domentirely - Update
server.jsto usepreact-render-to-string'srenderfunction. Also remove the<div id="root">element from our html template since Preact can render to the body.
0.8.1
9 years ago
0.8.0
9 years ago
0.7.6-rc2
9 years ago
0.7.6-0.7.6-rc1.0
9 years ago
0.7.5
9 years ago
0.7.3
9 years ago
0.7.2
9 years ago
0.7.1
9 years ago
0.7.0
9 years ago
0.6.5
9 years ago
0.6.4
9 years ago
0.6.3
9 years ago
0.6.1
9 years ago
0.6.0
9 years ago
0.6.0-rc2
9 years ago
0.6.0-rc1
9 years ago
0.5.4
9 years ago
0.5.3
9 years ago
0.5.2
9 years ago
0.5.1
9 years ago
0.5.0
9 years ago
0.4.4
9 years ago
0.4.3
9 years ago
0.4.2
9 years ago
0.4.1
9 years ago
0.4.0
9 years ago
0.3.0
9 years ago
0.2.16
9 years ago
0.2.15
9 years ago
0.2.14
9 years ago
0.2.13
9 years ago
0.2.12
9 years ago
0.2.11
9 years ago
0.2.10
9 years ago
0.2.9
9 years ago
0.2.8
9 years ago
0.2.7
9 years ago
0.2.6
9 years ago
0.2.5
9 years ago
0.2.4
9 years ago
0.2.3
9 years ago