---
title: "Installation"
framework: react
version: "36.1.0"
---

# Installation

AG Grid is available for download from NPM. Once installed, you need to import the package and register the modules you want to use.

## Installation

Install the `ag-grid-react` package, which also installs `ag-grid-community`:

```bash
npm install ag-grid-react
```

To use AG Grid Enterprise features, install the `ag-grid-enterprise` package:

```bash
npm install ag-grid-enterprise
```

> **Note**
>
> You can test AG Grid Enterprise locally without a licence. To test in production, access support, and remove the watermark and console warnings, [request a trial licence](https://www.ag-grid.com/react-data-grid/community-vs-enterprise/#request-a-30-day-enterprise-bundle-trial-licence).

> **Note**
>
> `ag-grid-react` and `ag-grid-enterprise` versions must be identical to ensure that all features work correctly.

## Registering Modules

Use `AgGridProvider` to provide modules and a license key (enterprise only) to all grid instances. Provide `AllCommunityModule` to access all Community features or `AllEnterpriseModule` to access all Community ***and*** Enterprise features:

```jsx
import { AllCommunityModule } from 'ag-grid-community';
// import { AllEnterpriseModule } from 'ag-grid-enterprise';
import { AgGridProvider, AgGridReact } from 'ag-grid-react';

const modules = [AllCommunityModule];

function App() {
    return (
        <AgGridProvider modules={modules} licenseKey="YOUR_LICENSE_KEY">
            <AgGridReact /* ... props */ />
        </AgGridProvider>
    );
}
```

> **Note**
>
> To minimize bundle size, only register the modules you want to use. See the [Selecting Modules](https://www.ag-grid.com/react-data-grid/modules/) docs for more information.

## Importing

Import `AgGridProvider` and `AgGridReact` from the `ag-grid-react` package:

```js
import { AgGridProvider, AgGridReact } from 'ag-grid-react';
```
