You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gatsby-plugin-preact

Package Overview
Dependencies
Maintainers
0
Versions
521
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-preact

A Gatsby plugin which replaces React with Preact

7.14.0
latest
Source
npmnpm
Version published
Weekly downloads
3.7K
-29.51%
Maintainers
0
Weekly downloads
 
Created
Source

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`]

Keywords

gatsby

FAQs

Package last updated on 06 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts