Evaluate Essential Studio for React free.Start building today.
Add Syncfusion React components to your app.
Use a package manager to add Syncfusion React components to your application now, or download Syncfusion Studio to browse samples and binaries on your desktop.
Install the Syncfusion® React Grids and theme packages
Install the React Grids and Tailwind3 theme packages using npm:
npm install @syncfusion/ej2-react-grids @syncfusion/ej2-tailwind3-theme
Register your trial license key
Include your license key in src/index.tsx before initializing any Syncfusion components.
import { registerLicense } from '@syncfusion/ej2-base';
// Registering Syncfusion license key
registerLicense("YOUR_LICENSE_KEY");
Add the required CSS reference
When creating a new application, the src/index.css and src/App.css files contain default styles. Remove all existing styles from these files and add the required Syncfusion® style to the src/App.css file.
@import "../node_modules/@syncfusion/ej2-tailwind3-theme/styles/grid/index.css";
Add the DataGrid component
Add the DataGrid component in the src/App.tsx file.
import { ColumnDirective, ColumnsDirective, GridComponent } from '@syncfusion/ej2-react-grids';
import './App.css';
interface Order {
OrderID: number;
CustomerName: string;
OrderDate: Date;
ShipCountry: string;
Freight: number;
}
// Defines the data to be displayed in the DataGrid.
const data: Order[] = [
{ OrderID: 10248, CustomerName: 'Ana Trujillo', OrderDate: new Date(2025, 0, 12), ShipCountry: 'France', Freight: 32.38 },
{ OrderID: 10249, CustomerName: 'Martin Sommer', OrderDate: new Date(2025, 0, 15), ShipCountry: 'Germany', Freight: 11.61 },
{ OrderID: 10250, CustomerName: 'Thomas Hardy', OrderDate: new Date(2025, 1, 5), ShipCountry: 'Brazil', Freight: 65.83 },
{ OrderID: 10251, CustomerName: 'Elizabeth Lincoln', OrderDate: new Date(2025, 1, 18), ShipCountry: 'France', Freight: 41.34 },
{ OrderID: 10252, CustomerName: 'Victoria Ashworth', OrderDate: new Date(2025, 2, 10), ShipCountry: 'Belgium', Freight: 51.30 },
{ OrderID: 10253, CustomerName: 'Martine Rance', OrderDate: new Date(2025, 2, 22), ShipCountry: 'Brazil', Freight: 58.17 },
]
function App() {
return <div>
{/* Assign the dataset to the DataGrid component */}
<GridComponent dataSource={data}>
{/* Define the columns to be displayed */}
<ColumnsDirective>
<ColumnDirective field='OrderID' headerText='Order ID' width='100' textAlign='Right'/>
<ColumnDirective field='CustomerName' headerText='Customer Name' width='100'/>
<ColumnDirective field='OrderDate' headerText='Order Date' width='100' format='yMd' textAlign='Right'/>
<ColumnDirective field='Freight' width='100' format='C2' textAlign='Right'/>
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='100'/>
</ColumnsDirective>
</GridComponent>
</div>
}
export default App;
Search a control. Copy its install command.
Search 245 controls across 14 platforms. Each command comes from that control’s getting-started guide, and every package is checked on NuGet, npm, or pub.dev.
Loading controls…
Evaluate faster with your coding agent.
Paste this prompt into GitHub Copilot, Claude Code, Cursor, or any agent. It sets up Syncfusion for your project from ai.syncfusion.com before it writes code.
Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com then report the detected platform, installed skills, MCP status, and any required licensing action.
No key needed to install the skills. The MCP servers use the API key that comes with a free account. Agent setup guides
AI assistants
IDEs
Short, task-first walkthroughs.
Need help getting started?
Explore our resources or reach out to our support team for assistance.
Syncfusion Studio for your desktop.
One small download. Browse every product, download samples and binaries, and set up your IDE and AI assistant.