# Step 2

## Title

First create yout `Title` component. Since this is a stateless component you can use a simple `function` that returns JSX.

Try using children to be able to call your component as following in your `render()` function in `App.js`:

```jsx
import Title from '../Title';
...
render () {
  return (
    <div>
      <Title>
        Product Page
      </Title>
    </div>
  );
}
```

⚠️ Don't forget to import your component at the begining of `App.js` with: `import Title from '../Title';` and to `export default` your `function` or your `class` in your `Title` component.

## ProductList

Now that you have your title, create a component to render the list of products. Here is the expected API:

```jsx
import Title from '../Title';
import ProductList from '../ProductList';
...
render () {
  return (
    <div>
      <Title>
        Product Page
      </Title>

      <ProductList products={products} />
    </div>
  );
}
```


---

# 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-2.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.
