# Hooks

## Hooks only for webcomponents

{% content-ref url="/pages/-MTZ5fCIiAlTPnkvYfJ3" %}
[useProp](/doc/api/hooks/useprop.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MTZ5fCJKRlRS1Bpi\_BT" %}
[useEvent](/doc/api/hooks/useevent.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MTZ5fCKEQHcP2tIHATI" %}
[useHost](/doc/api/hooks/usehost.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Mkwp33SLVgVfy0qkilq" %}
[useUpdate](/doc/api/hooks/useupdate.md)
{% endcontent-ref %}

{% content-ref url="/pages/LNKBr1ttVQhyx3ruOVlJ" %}
[usePromise](/doc/api/hooks/usepromise.md)
{% endcontent-ref %}

{% content-ref url="/pages/qyZhWvDn7OmoQHzu9iQz" %}
[useAsync and useSuspense](/doc/api/hooks/useasync-and-usesuspense.md)
{% endcontent-ref %}

## Hooks homogolates of React

{% content-ref url="/pages/-MTZ5fCLfXeiMmLlb33a" %}
[useState](/doc/api/hooks/usestate.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MTZ5fCMGH0inbROauka" %}
[useReducer](/doc/api/hooks/usereducer.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MTZ5fCNTweVKk9M8jgz" %}
[useRef](/doc/api/hooks/useref.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MTZ5fCOpMInNsfGTgGY" %}
[useEffect, useLayoutEffect and useInsertionEffect](/doc/api/hooks/useeffect-y-uselayouteffect.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MTZ5fCPatT6T56JeEaN" %}
[useMemo and useCallback](/doc/api/hooks/usememo-y-usecallback.md)
{% endcontent-ref %}

{% content-ref url="/pages/8kW030mxIe5DZX6irP3V" %}
[useContext](/doc/api/hooks/usecontext.md)
{% endcontent-ref %}

{% content-ref url="/pages/RDLDpxmMwWHCaQkfPPWY" %}
[useId](/doc/api/hooks/useid.md)
{% endcontent-ref %}

## @atomico/hooks

Atomico today offers more Hooks external to the core, we invite you to visit [@atomico/hooks](/doc/packages/atomico-hooks.md) with more than 50 hooks to enhance the use of webcomponents 😎

{% content-ref url="/pages/-MY1eesaEwlbhszALGSJ" %}
[@atomico/hooks](/doc/packages/atomico-hooks.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://atomico.gitbook.io/doc/api/hooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
