# Step 1

## 1. Setup `create-react-app`

Take a look at the [Getting started page](https://github.com/shopify/react/tree/2fb346599c5d7e9d0fed4b8351ed9d6c6cd8300e/Exercises/LightProductList/GETTING_STARTED.md) and make sure you have `create-react-app` up and running.

## 2. Download product list as JSON

* Find your favorite Shopify store, eg. [Chubbies](https://www.chubbiesshorts.com/) and download the list of products as JSON by going to the [`/products.json`](https://www.chubbiesshorts.com/products.json) URL.
* Add the downloaded file to your project, you will be able to import it as JSON in your code by doing:

```javascript
// App.js
import products from './products.json';
```

⚠️ Importing a JSON file is made possible here because you are using `create-react-app`. Under the hood, `create-react-app` has a webpack configuration that allows you to import JSON file.


---

# 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://shopify-1.gitbook.io/react/exercises/1.-productlist-light/step-1.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.
