A Gatsby plugin which replaces React with Preact
npm install gatsby-plugin-preactProvides 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.
> Note: This plugin uses Preact X, any version prior to v10.0.0 is incompatible with Gatsby v2.
npm install gatsby-plugin-preact preact preact-render-to-string
``javascriptgatsby-plugin-preact
// In your gatsby-config.js
plugins: []``