JSX
import React, { useState } from 'react';
import * as wjcCore from '@mescius/wijmo';
import * as wjcGrid from '@mescius/wijmo.react.grid';
import '@mescius/wijmo.styles/wijmo.css';
import '@mescius/wijmo.cultures/wijmo.culture.ko'; // 한국어 문화권 — 날짜·숫자·필터 UI 한글화
wjcCore.setLicenseKey('YOUR_LICENSE_KEY');
function getData() {
const regions = ['서울', '부산', '대구', '인천', '광주'];
const categories = ['전자제품', '의류', '식품', '가구', '스포츠'];
return Array.from({ length: 15 }, (_, i) => ({
id: i + 1,
region: regions[i % regions.length],
category: categories[i % categories.length],
revenue: Math.round(Math.random() * 10000 + 1000),
cost: Math.round(Math.random() * 5000 + 500),
date: new Date(2026, i % 12, (i % 28) + 1),
isApproved: i % 2 === 0,
}));
}
export default function App() {
const [data] = useState(getData());
// selectionChanged 이벤트로 선택된 행 데이터를 상태로 관리
const [selectedItem, setSelectedItem] = useState(null);
return <div />;
}