docs: add recipe pages with navigation hub#42
Merged
Conversation
- Create recipe navigation hub at /recipes/ - Restructure existing recipes into folder structure - Add 5 new recipes: - reactive-styles: stream-based style updates - async-data-loading: Effect components with loading states - form-handling: reactive inputs and validation - list-rendering: arrays, fragments, dynamic lists - subscription-ref: SubscriptionRef as SolidJS-like signals - Each recipe has index.html, app.tsx, and readme.md - Update styling to clean black-on-white monospace - Add link from main playground to recipes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Schema-based email validation example to form-handling - Add complete registration form with Schema validation (username, password, age fields with multiple rules) - Update subscription-ref Object State to use Schema validation - Update readme files with Schema validation patterns Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Wrap component outputs in divs with margin to prevent overlap with description paragraphs. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The Counter example didn't update the UI because clicking the button only incremented a local variable without emitting to the stream. Replaced with a simple AlertButton that clearly demonstrates a plain callback handler working. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replaces the broken AlertButton with a more interesting StreamCounter that demonstrates Effect and Stream composition patterns: - Effect.andThen to wait for DOM readiness after mount - Stream.fromEventListener to capture button click events - Stream.merge to combine increment/decrement streams - Stream.scan to accumulate state over time - Stream.concat to prepend initial value Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The form submit handler now actually validates all fields before showing "Registration successful!" - it was always showing success regardless of validation state. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
🎉 This PR is included in version 0.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/recipes/with links to all recipes.changesstreamsindex.html,app.tsx, andreadme.mdTest plan
pnpm devand navigate tohttp://localhost:3000/recipes/🤖 Generated with Claude Code