Search results


Installing Package

Syncfusion React packages are published in npm. You can install the necessary packages from npm’s install command. For example, grid package can be installed using following command.

npm install @syncfusion/ej2-react-grids --save

These packages offer JavaScript files in ES6, UMD module systems. Which can be used in different dependency management and bundling libraries.

  • System JS

Using SystemJS

Syncfusion npm package provides the UMD bundle file for loading scripts via script loaders such as Require JS, System JS, etc. To find UMD files in package read topic Anatomy of Package.

Configuration Steps

Step 1: To setup project locally, read topic Setup for Local Development.

Step 2: Install your required npm packages.

Step 3: Map the Syncfusion React packages in system.config.js configuration file as follows.

    transpiler: "ts",
    typescriptOptions: {
        target: "es5",
        module: "commonjs",
        moduleResolution: "node",
        emitDecoratorMetadata: true,
        experimentalDecorators: true,
        "jsx": "react"
    meta: {
        'typescript': {
            "exports": "ts"
    paths: {
        "syncfusion:": ""
    map: {
        app: 'app',
        ts: "",
        typescript: "",
        "@syncfusion/ej2-base": "syncfusion:ej2-base/dist/ej2-base.umd.min.js",
        "@syncfusion/ej2-buttons": "syncfusion:ej2-buttons/dist/ej2-buttons.umd.min.js",
        "@syncfusion/ej2-react-base": "syncfusion:ej2-react-base/dist/ej2-react-base.umd.min.js",
        "react-dom": "",
        "react": "",

    packages: {
        'app': { main: 'index', defaultExtension: 'tsx' },



Step 4: Adding component to the Application

Now, you can start adding Syncfusion React UI components in the application. For getting started, we have added a Button Module in app.tsx and index.html file using following code.

Now, add the Button in index.tsx will be as follows

import * as React from 'react';
import * as ReactDom from 'react-dom';
import { ButtonComponent } from '@syncfusion/ej2-react-buttons';
import { enableRipple } from '@syncfusion/ej2-base';
// Enable the ripple effect

// To render Button.
class App extends React.Component<{}, {}> {
  render() {
    return (
ReactDom.render(<App />,document.getElementById('button'));

Now, add the Button in index.html using following code

<!DOCTYPE html>
<html lang="en">

    <title>Syncfusion React Button</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="Essential JS 2 for React Components" />
    <meta name="author" content="Syncfusion" />
    <link href="" rel="stylesheet" />
    <link href="index.css" rel="stylesheet" />
    <script src=""></script>
    <script src="systemjs.config.js"></script>

        <div id='button'>
            <div id='loader'>Loading....</div>


Step 5: Adding CSS reference

Individual component CSS files are available in the Syncfusion React package styles folder. This can be referenced in your material.css using following code.

@import '../../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../../node_modules/@syncfusion/ej2-react-buttons/styles/material.css';

Step 6: Running the application

The quick-start project is configured to compile and run the application in browser. Use the following command to run the application.

npm start