Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implicit qhooks #125

Merged
merged 6 commits into from
Jan 5, 2022
Merged

feat: implicit qhooks #125

merged 6 commits into from
Jan 5, 2022

Conversation

manucorporat
Copy link
Contributor

@manucorporat manucorporat commented Dec 29, 2021

Allows to write qwik components without explicitly creating qHook:

const Header = qComponent({
  onMount: () => { console.log("mount") },
  onRender: () => {
    return (
      <div
        on:click={(ctx) => console.log(ctx)}
       />
    );
  }
});

src/optimizer/core/src/collector.rs Outdated Show resolved Hide resolved
Co-authored-by: Armando Pérez Marqués <gmandx@gmail.com>
@cloudflare-pages
Copy link

cloudflare-pages bot commented Oct 20, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2bcb73d
Status: ✅  Deploy successful!
Preview URL: https://3af942b9.qwik-docs.pages.dev

View logs

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.

None yet

2 participants