---
title: "WidgetsContainer"
slug: "widgetscontainer"
abstract: "Details of the WidgetsContainer component in Sitecore Discover JS SDK for React."
---
# WidgetsContainer

`WidgetsContainer` is a React component that can render all widgets, configured in Sitecore Discover Customer Engagement Console (CEC). At runtime, it renders widgets based on those configured for the URL or page.

<details>
<summary><h2>Import path</h2></summary>

```js
import { WidgetsContainer } from '@sitecore-discover/react';
```

</details>

<details>
<summary><h2>Example</h2></summary>

The `WidgetsContainer` is added as a child to the `WidgetsProvider` component, as follows:

```js
<WidgetsProvider
    env='<environment>'
    customerKey='<customer key>'
    apiKey='<api key>'
    useToken
    >
    <WidgetsContainer />
</WidgetsProvider>
```

</details>