Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

gatsby-plugin-preact

4.3.0 • Public • Published

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.

Note: This plugin uses Preact X, any version prior to v10.0.0 is incompatible with Gatsby v2.

Install

npm install gatsby-plugin-preact preact preact-render-to-string

How to use

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

Install

npm i gatsby-plugin-preact

DownloadsWeekly Downloads

8,964

Version

4.3.0

License

MIT

Unpacked Size

21.2 kB

Total Files

8

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar