qwik
qwik copied to clipboard
[📖] Add document for Hooks
Suggestion
I searched your docs and could not find a page explaining hooks and their rules. For example, is it necessary to be prefixed with use
just as the same as the react? Is it essential to use hooks only on the top level of a component?
I just found this tutorial.
But I think it's better to have a hooks page too specifically if Qwik hooks have differences from React hooks.
i will start working on it
I think all the hooks (mostly) there in the docs, but spread out through the Component API sections (Lifecycle, resource, context, etc)
i think we should have separate section named use-
hooks. WDYT?
I think the docs are always a work in progress and if you have a good idea for improving them, go for it! 😄
yeah i will make PR very soon busy in college right now.
We have some docs here: https://qwik.builder.io/docs/components/lifecycle/#use-method-rules
but i agree! this deserve its own section, maybe adding something new in advanced ?
#2301