-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-local.js
More file actions
23 lines (19 loc) · 843 Bytes
/
test-local.js
File metadata and controls
23 lines (19 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Simple test file to verify the package works locally
import React from 'react';
import { createRoot } from 'react-dom/client';
// Use local build
const { ExcelTable } = require('../packages/excel-table/dist/index.js');
const testData = [
{ name: 'John Doe', age: 30, city: 'New York', active: true },
{ name: 'Jane Smith', age: 25, city: 'San Francisco', active: false },
{ name: 'Bob Johnson', age: 35, city: 'Chicago', active: true },
];
function TestApp() {
return React.createElement('div', { style: { padding: '20px' } },
React.createElement('h1', null, 'Cvians Excel Table Test'),
React.createElement(ExcelTable, { data: testData })
);
}
// This is just a test to check if the component can be imported without errors
console.log('ExcelTable component:', ExcelTable);
console.log('Test completed successfully!');