3.0.0 • Published 5 years ago

razzle-examples-with-preact v3.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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-preact

Install it and run:

yarn install
yarn start

Idea behind the example

This shows how to setup Preact 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 preact and preact-render-to-string
  4. Remove react, react-dom, react-router-dom entirely
  5. Update server.js to use preact-render-to-string's render function. Also remove the <div id="root"> element from our html template since Preact can render to the body.
3.0.0

5 years ago

3.0.0-alpha.2

5 years ago

3.0.0-alpha.1

5 years ago

2.4.1

5 years ago

3.0.0-alpha.0

5 years ago

2.4.0

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

2.0.0-alpha.12

6 years ago

2.0.0-alpha.11

6 years ago

2.0.0-alpha.10

6 years ago

2.0.0-alpha.9

6 years ago

2.0.0-y.0

6 years ago

2.0.0-alpha.8

6 years ago

2.0.0-alpha.7

6 years ago

2.0.0-alpha.6

6 years ago

2.0.0-alpha.5

6 years ago

2.0.0-alpha.4

6 years ago

2.0.0-alpha.3

6 years ago

0.8.14

6 years ago

2.0.0-alpha.2

6 years ago

0.8.13

6 years ago

2.0.0-alpha.1

6 years ago

0.8.12

6 years ago

0.8.11

6 years ago

0.8.10

6 years ago

0.8.9

6 years ago

0.8.8

6 years ago

0.8.7

6 years ago

0.8.6

6 years ago

0.8.5

6 years ago

0.8.4

6 years ago

0.8.3

7 years ago

0.8.2

7 years ago