Provides drop-in support for replacing React with Preact.
Note: This plugin uses Preact X, any version prior to
v10.0.0is incompatible with Gatsby v2.
npm install --save gatsby-plugin-preact preact
// In your gatsby-config.js plugins: [`gatsby-plugin-preact`]
Gatsby development server currently has a hardcoded dependency on React-dom, therefore this plugin does not enable Preact in development.
While Preact is designed to be a drop-in replacement, you should check that your production build works as expected before putting it live.