> For the complete documentation index, see [llms.txt](https://bryan-guner.gitbook.io/my-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bryan-guner.gitbook.io/my-docs/redux/repos/learning-react/chapter-04.md).

# Chapter 4 : Pure React

If you take the time to understand what is going on behind the scenes you will be more efficient, especially when it comes time to debug.

## Samples

### Page Setup

1. HTML Document Setup ([code](https://github.com/MoonHighway/learning-react/blob/master/chapter-04/01-page-setup/01-page-setup.html))
2. HTML for a Recipe ([run it](https://github.com/MoonHighway/learning-react/blob/master/chapter-04/01-page-setup/02-baked-salmon.html))

### React Elements

1. Rendering an Element ([run it](http://jsbin.com/polufak/1/edit?js,output))
2. Rendering an Element with Properties ([run it](http://jsbin.com/polufak/2/edit?js,output))
3. Rendering Lists ([run it](http://jsbin.com/polufak/3/edit?js,output))
4. Mapping over Elements ([run it](http://jsbin.com/polufak/4/edit?js,output))
5. Adding Keys ([run it](http://jsbin.com/polufak/5/edit?js,output))

### React Components

1. Rendering createElement ([run it](https://jsbin.com/dizifem/1/edit?js,output))
2. List Items as props ([run it](https://jsbin.com/sedovap/1/edit?js,output))


---

# 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 dynamically by asking a question.

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

```
GET https://bryan-guner.gitbook.io/my-docs/redux/repos/learning-react/chapter-04.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.
