# 5️⃣ Adding behaviour

We've just seen an example of behaviour. We've made the styling of our site change depending on the type of page we are on.

In this section we're going to make our site respond to user actions in a more direct way. We'll see how we can use properties in the state and actions, working together in tandem, to make our site interactive.

After that we'll go on to implement a key feature of any blog based website, i.e. the ability to paginate through the post listing.

By the end of this section our site will not only be looking good, but it will also have useful functionality added to it.


---

# 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://tutorial.frontity.org/part5-adding-behaviour.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.
