Alias React to Preact in code components

Created on 4 April 2025, 18 days ago

Overview

preact/compat is a compatibility layer that allows leveraging the many libraries of the React ecosystem and use them with Preact. Relying on it in the in-browser code components would provide great flexibility and convenience.

Proposed resolution

Let's alias React to Preact in the import map we build for code components when they're rendered/hydrated for content. We already do this in the code editor's preview.

User interface changes

Code component authors can import React or modules from React, e.g. import { useEffect } from React.

Feature request
Status

Active

Version

0.0

Component

Theme builder

Created by

🇳🇱Netherlands balintbrews Amsterdam, NL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024