Search results

Installation

02 Dec 2022 / 1 minute to read

The Syncfusion React npm packages can be installed in the application through any of the following steps:

  • Installation using npm CLI.
  • Installation through package reference in Package.json file.

Install by using npm CLI

Syncfusion React (Essential JS 2) packages are published in npm. You can install the necessary packages from npm’s install command. For example, React Grid package can be installed using following command.

Copied to clipboard
npm install @syncfusion/ej2-react-grids --save

The above command will install the Grid component package and all its dependency packages. You can see the package.json file updated with Grid package in dependencies.

Install by using package.json

  1. Add the Syncfusion React (Essential JS 2) package references in the dependencies of ~/package.json file.
Copied to clipboard
{
    "dependencies": {
        "@syncfusion/ej2-react-grids": "*",
    }
}

The * indicates the latest version of npm package.

  1. Now, open the command prompt and run the npm install command line. By default, npm install will install all modules listed as dependencies in package.json.

Refer the documentation for more details about npm package.json