> For the complete documentation index, see [llms.txt](https://atomico.gitbook.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atomico.gitbook.io/doc/api/hooks.md).

# Hooks

Improves the experience of reusing logic between webcomponents based on Atomico

## 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
