Skip to content

Conversation

@trusktr
Copy link
Member

@trusktr trusktr commented Jan 1, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 1, 2026 04:16
@trusktr trusktr changed the title update examples update examples to show all decorator usages, class components, and custom elements Jan 1, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the example files to better demonstrate the usage of classy-solid features. The changes showcase more comprehensive examples including effects, memo, component usage, and Custom Elements integration.

Key Changes:

  • Refactored examples to demonstrate @effect decorators for reactivity tracking within classes
  • Added examples of Custom Element integration with lifecycle management
  • Updated README.md to show @effect decorators and the stopEffects API

Reviewed changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/example.ts Complete rewrite demonstrating Counter/Example classes with effects, MyComp component, and MyElement custom element with lifecycle hooks
example/index.html Removed standalone heading as the examples now render their own content
README.md Updated "At a glance" section to include @effect decorators and stopEffects usage
dist/example.js Generated JavaScript output from transpiled src/example.ts
dist/example.js.map Updated source map for the new example code
dist/example.d.ts Updated TypeScript declarations (now exports empty as classes are not exported)
dist/example.d.ts.map Updated TypeScript declaration source map

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


@component
class MyComp {
@signal message = 'Hello, World!'

This comment was marked as resolved.

@trusktr trusktr merged commit 85749ea into main Jan 1, 2026
2 checks passed
@trusktr trusktr deleted the examples branch January 1, 2026 04:43
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.

2 participants