Skip to content

✨ Preact integration - #41

Open
cowboyd wants to merge 3 commits into
dom-mutation-and-eventsfrom
dom-preact
Open

cowboyd wants to merge 3 commits into
dom-mutation-and-eventsfrom
dom-preact

Conversation

@cowboyd

@cowboyd cowboyd commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Add @clack/ui-preact, a small Preact 11 integration that mounts into any Clack element.

  • Expose createRoot(element) with rendering, unmounting, and explicit disposal, without a global document or DOM adapter.
  • Supply JSX runtimes and types for Clack elements, refs, and events. Keep the JSX transform local to the Preact package and example, so other framework integrations remain independent.

Note: I had to patch @bomb.sh/tools in order to get proper test failures.

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • All tests pass (pnpm test)
  • Files are formatted (pnpm format)
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

@socket-security

socket-security Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedtsx@​4.23.151001008191100
Addedpreact@​11.0.110010010097100

View full report

@cowboyd
cowboyd added this pull request to stack #42 October 21, 2026 04:36
@cowboyd cowboyd changed the title ✨ preact: add style-independent integration and greeting example ✨ react integration Oct 21, 2026
@cowboyd cowboyd changed the title ✨ react integration ✨ Preact integration Oct 21, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
  • @examples/hello-world-preact

    npm i https://pkg.pr.new/bombshell-dev/ui/@clack/ui@41
    
    npm i https://pkg.pr.new/bombshell-dev/ui/@clack/ui-preact@41
    

commit: 8dbb336

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant