razzle-examples-with-inferno
v3.0.0
Published
## How to use Download the example [or clone the whole project](https://github.com/jaredpalmer/razzle.git):
Downloads
160
Readme
Razzle Inferno 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-inferno
cd with-infernoInstall it and run:
yarn install
yarn startIdea behind the example
This shows how to use Inferno instead of React in a Razzle project.
Here is a list of changes from Razzle's base template:
- Install
babel-plugin-infernoas a devDependency. - Extend Razzle's babel config with a custom
.babelrc - Install
inferno,inferno-server,inferno-devtools,inferno-componentas dependencies - Remove
react,react-dom,react-router-domentirely - Update
server/server.jsto useinferno-server'srenderToStringfunction. - Update
client.jsto configure Inferno for HMR.
