ag-grid-react vs material-table vs react-table
React用データテーブルライブラリ
ag-grid-reactmaterial-tablereact-table類似パッケージ:

React用データテーブルライブラリ

React用のデータテーブルライブラリは、データを効率的に表示、操作、編集するためのツールです。これらのライブラリは、データの表示を簡素化し、ユーザーインターフェースを改善するための多くの機能を提供します。特に、フィルタリング、ソート、ページネーションなどの機能が備わっており、開発者は迅速にアプリケーションを構築できます。

npmのダウンロードトレンド

3 年

GitHub Starsランキング

統計詳細

パッケージ
ダウンロード数
Stars
サイズ
Issues
公開日時
ライセンス
ag-grid-react1,363,04815,095674 kB12225日前MIT
material-table57,8843,498335 kB42年前MIT
react-table027,773940 kB369-MIT

機能比較: ag-grid-react vs material-table vs react-table

パフォーマンス

  • ag-grid-react:

    ag-grid-reactは、仮想化技術を使用して大規模なデータセットを効率的に処理します。これにより、表示される行数が少ない場合でも、高速なレンダリングが可能です。特に、数万行のデータを扱う際にその効果が顕著です。

  • material-table:

    material-tableは、比較的小規模なデータセットに対して最適化されています。デフォルトでは、パフォーマンスは良好ですが、大規模なデータセットでは、ag-gridに比べてパフォーマンスが劣る可能性があります。

  • react-table:

    react-tableは、必要な機能を選択して追加できるため、軽量であることが特徴です。デフォルトでは最小限の機能しか提供しませんが、必要に応じて拡張することでパフォーマンスを最適化できます。

カスタマイズ性

  • ag-grid-react:

    ag-grid-reactは、豊富なAPIとカスタマイズオプションを提供します。セルのレンダリング、フィルタリング、ソートなど、さまざまな機能を細かく設定できるため、ビジネスニーズに応じた柔軟な対応が可能です。

  • material-table:

    material-tableは、マテリアルデザインに基づいたスタイルを提供しつつ、簡単にカスタマイズできます。カスタムセルレンダラーやアクションを追加することができ、見た目や機能を簡単に調整できます。

  • react-table:

    react-tableは、非常に高いカスタマイズ性を持ち、開発者が必要な機能を自由に追加できます。デフォルトでは最小限の機能を提供しますが、プラグインを使用して機能を拡張することが容易です。

学習曲線

  • ag-grid-react:

    ag-grid-reactは多機能であるため、初めて使用する際には学習曲線が急になることがあります。特に、さまざまな機能を使いこなすためには、ドキュメントをしっかりと理解する必要があります。

  • material-table:

    material-tableは、シンプルなAPIを提供しているため、比較的学習しやすいです。基本的な機能をすぐに利用できるため、迅速にプロジェクトを開始できます。

  • react-table:

    react-tableは、軽量でシンプルな設計のため、学習曲線が緩やかです。基本的なテーブルを作成するのは簡単ですが、カスタマイズを行う際には、少し学習が必要です。

機能の豊富さ

  • ag-grid-react:

    ag-grid-reactは、フィルタリング、ソート、ページネーション、行のグループ化など、多くの機能を提供しています。また、セルの編集やカスタムレンダリングもサポートしており、非常に強力です。

  • material-table:

    material-tableは、基本的な機能に加えて、検索やフィルタリング、ソート、編集機能を簡単に追加できます。特に、マテリアルデザインに基づいたUIが魅力です。

  • react-table:

    react-tableは、基本的なテーブル機能を提供しますが、必要に応じてプラグインを使用して機能を追加できます。これにより、開発者は必要な機能だけを選択して実装できます。

サポートとメンテナンス

  • ag-grid-react:

    ag-gridは商用製品であり、公式のサポートが提供されています。定期的にアップデートが行われ、新機能が追加されるため、長期的なプロジェクトに適しています。

  • material-table:

    material-tableはオープンソースですが、活発なコミュニティがあり、問題解決のためのサポートを受けることができます。ただし、公式のサポートはありません。

  • react-table:

    react-tableもオープンソースであり、コミュニティによるサポートが存在しますが、公式のサポートはありません。ドキュメントが充実しているため、自己解決が可能です。

選び方: ag-grid-react vs material-table vs react-table

  • ag-grid-react:

    大規模なデータセットを扱う必要がある場合や、カスタマイズ性が高く、パフォーマンスが求められる場合は、ag-grid-reactを選択してください。多くの機能が組み込まれており、商用利用にも適しています。

  • material-table:

    マテリアルデザインに基づいた美しいUIを提供し、簡単に使える機能を求める場合は、material-tableを選択してください。特に、迅速な開発を重視するプロジェクトに適しています。

  • react-table:

    軽量で柔軟性が高く、カスタマイズ可能なテーブルを構築したい場合は、react-tableを選択してください。シンプルなAPIを提供し、必要な機能を追加することが容易です。

ag-grid-react のREADME

React Data Grid | React Table

AG Grid Logo
GitHub Release NPM Downloads GitHub Repo stars GitHub forks

Quality Gate Status npms.io Maintenance Score GitHub commit activity Dependents

AG Grid is a fully-featured and highly customizable React Data Grid. It delivers outstanding performance and has no third-party dependencies.


High Performance Demo

📖 Overview

Table of Contents

AG Grid is available in two versions: Community & Enterprise.

Features

FeatureAG Grid CommunityAG Grid Enterprise
MCP Server✅ (Advanced)
Filtering✅ (Advanced)
Sorting
Cell Editing
CSV Export
Drag & Drop
Themes and Styling
Selection
Accessibility
Infinite Scrolling
Pagination
Server-Side Data✅ (Advanced)
Custom Components
AI Toolkit
Integrated Charting
Formulas
Find
Range Selection
Row Grouping and Aggregation
Pivoting
Excel Export
Clipboard Operations
Master/Detail
Tree Data
Column Menu
Context Menu
Tool Panels
Support

ℹ️ Note:

Visit the Pricing page for a full comparison.

Examples

We've created several demos to showcase AG Grid's rich feature set across different use cases. See them in action below, or interact with them on our Demo page.

🏦 Financial Demo

Financial data example featuring live updates and sparklines:

Finance

📦 Inventory Demo

Inventory data example to view and manage products:

Finance
🧑‍💼 HR Demo

HR data example showing hierarchical employee data:

Finance

⚡️ Quick Start

AG Grid is easy to set up - all you need to do is provide your data and define your column structure.

Installation

$ npm install --save ag-grid-react

Setup

1. Register Modules

Register the AllCommunityModule to access all Community features:

import { AllCommunityModule, ModuleRegistry } from 'ag-grid-community';

// Register all Community features
ModuleRegistry.registerModules([AllCommunityModule]);

ℹ️ Note:

To minimize bundle size, only register the modules you want to use. See the Modules page for more information.

2. Import the React Data Grid

// React Data Grid Component
import { AgGridReact } from 'ag-grid-react';

3. Define Rows and Columns

const GridExample = () => {
    // Row Data: The data to be displayed.
    const [rowData, setRowData] = useState([
        { make: 'Tesla', model: 'Model Y', price: 64950, electric: true },
        { make: 'Ford', model: 'F-Series', price: 33850, electric: false },
        { make: 'Toyota', model: 'Corolla', price: 29600, electric: false },
    ]);

    // Column Definitions: Defines the columns to be displayed.
    const [colDefs, setColDefs] = useState([
        { field: 'make' },
        { field: 'model' },
        { field: 'price' },
        { field: 'electric' },
    ]);

    // ...
};

4. React Data Grid Component

return (
    // set a height on the parent div because the grid fills the available space
    <div style={{ height: 500 }}>
        <AgGridReact rowData={rowData} columnDefs={colDefs} />
    </div>
);

ℹ️ Note:

For more information on building Data Grids with AG Grid, refer to our Documentation.

Seed Projects

We also provide Seed Projects to help you get started with common configurations:

EnvironmentFramework
Create React App (CRA)React Logo
ViteReact Logo
Create Next AppReact Logo
Vite - TypeScriptTypeScript Logo
Webpack 5 - TypeScriptTypeScript Logo
Webpack 5 - ReactReact Logo
Angular CLIAngular Logo
NuxtVue3 Logo
ViteVue3 Logo

🛠️ Customisations

AG Grid is fully customisable, both in terms of appearance and functionality. There are many ways in which the grid can be customised and we provide a selection of tools to help create those customisations.

Custom Components

You can create your own Custom Components to customise the behaviour of the grid. For example, you can customise how cells are rendered, how values are edited and also create your own filters.

There are a number of different Component Types that you can provide to the grid, including:

To supply a custom cell renderer and filter components to the Grid, create a direct reference to your component within the gridOptions.columnDefs property:

gridOptions = {
    columnDefs: [
        {
            field: 'country', // The column to add the component to
            cellRenderer: CountryCellRenderer, // Your custom cell component
            filter: CountryFilter, // Your custom filter component
        },
    ],
};

Themes

AG Grid has 4 themes, each available in light & dark modes:

QuartzMaterial
Quartz Theme Material Theme
AlpineBalham
Alpine Theme Balham Theme

Custom Themes

All AG Grid themes can be customised using the Theming API, or you can create a new theme from scratch with the help of our Theme Builder or Figma Design System.

🌍 Community

Tools & Extensions

AG Grid has a large and active community who have created an ecosystem of 3rd party tools, extensions and utilities to help you build your next project with AG Grid, no matter which language or framework you use:

Showcase

AG Grid is used by 100,000's of developers across the world, from almost every industry. Whilst most of these projects are private, we've curated a selection of open-source projects from different industries where household names use AG Grid, including J.P.Morgan, MongoDB and NASA. Visit our Community Showcase page to learn more.

Stargazers

Founded in 2016, AG Grid has seen a steady rise in popularity and is now the market leader for Data Grids:

The AG Grid star history chart

🤝 Support

Enterprise Support

AG Grid Enterprise customers have access to dedicated support via ZenDesk, which is monitored by our engineering teams.

Bug Reports

If you have found a bug, please report it in this repository's issues section.

GitHub Issues

Questions

Look for similar problems on StackOverflow using the ag-grid tag. If nothing seems related, post a new message there. Please do not use GitHub issues to ask questions.

Stack Exchange questions

Contributing

AG Grid is developed by a team of co-located developers in London. If you want to join the team send your application to info@ag-grid.com.

⚠️ License

ag-grid-community is licensed under the MIT license.

ag-grid-enterprise has a Commercial license.

See the LICENSE file for more info.

AG ChartsLogoAG Charts

If you've made it this far, you may be interested in our latest project: AG Charts - The best React Charting library in the world.

Initially built to power Integrated Charts in AG Grid, we open-sourced this project in 2018. Having seen the steady rise in popularity since then, we have decided to invest in AG Charts with a dedicated Enterprise version (ag-charts-enterprise) in addition to our continued support of ag-charts-community.

Preview of AG Charts React Charting Examples

Follow us to keep up to date with all the latest news from AG Grid:

Twitter Badge LinkedIn Badge YouTube Badge Blog Badge