Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
.babelrc
.gitignore
.npmignore Add gatsby-plugin-preact Jan 24, 2017
CHANGELOG.md
README.md
index.js
package.json

README.md

gatsby-plugin-preact

Provides drop-in support for replacing React with Preact.

While Preact doesn't provide full support for the React ecosystem, it is an intriguing option for Gatsby sites as it saves ~30kb of JavaScript vs. using React.

Install

npm install --save gatsby-plugin-preact preact preact-compat

How to use

// In your gatsby-config.js
plugins: [`gatsby-plugin-preact`]