Skip to content

Compatibility with Preact #658

@connor-baer

Description

@connor-baer

Suggested technology

Preact is a fast 3kB alternative to React with the same modern API.

In applications where performance is critical (e.g. the marketing website), switching from React to Preact can decrease the overall bundle size significantly.

We need to investigate whether Circuit UI is compatible with Preact and what we would need to do to support it out of the box. This could be achieved through code changes or documenting the steps that users need to take to make them work together.

Note: Emotion stopped supporting Preact officially but it might be compatible anyway (#658 (comment)).

Alternatives

Preact is in itself an alternative to React, our current UI framework. I'm not aware of other React-compatible, performance-focused libraries.

Potential downsides

Officially supporting Preact might add significant amounts of work to maintain compatibility in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale🛠️ techChanges to the tech stack or infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions