Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Austin1serb
Copy link
Member

@Austin1serb Austin1serb commented Aug 2, 2025

Summary

Added the functionality for a mindblowing concept. SSR safe client interaction. this is experimental, currently there is only an onClick handler.
after set up, you spread the function on your element (SSR SAFE):

     <button {...zeroSSR.onClick('theme', ['light', 'dark'])}>Toggle</button>

and a simple 250byte runtime script adds the functionality.


Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 🧪 Test improvement
  • 📝 Docs update
  • ⚙️ CI/tooling
  • 🛠 Refactor

Checklist

  • All tests pass (pnpm test)
  • Linting and formatting pass (pnpm lint && pnpm format)
  • PR title follows semantic commit format (feat:, fix:, etc.)
  • Changes are documented (README, JSDoc, or comments if needed)
  • Ready for review — not a draft

Notes for Reviewer

@vercel
Copy link

vercel bot commented Aug 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-zero-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 2, 2025 6:46pm

@Austin1serb Austin1serb merged commit 88d4cfe into main Aug 2, 2025
3 checks passed
@Austin1serb Austin1serb deleted the feat/ssr-safe-onClick branch August 6, 2025 04:46
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