8000 Update example.ts · githubocto/flat-ui@7b4d43e · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b4d43e

Browse files
author
Amelia Wattenberger
authored
< 10000 /div>
Update example.ts
1 parent d6e1680 commit 7b4d43e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docs/example.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
import { Grid } from '@githubocto/flat-ui';
2-
import React from 'react';
3-
import * as ReactDOM from 'react-dom';
4-
5-
const MyComponent = () => {
6-
const data = [{ column1: 123 }, { column1: 234 }];
72

3+
const Spreadsheet = () => {
84
return <Grid data={data} />;
95
};
106

7+
const data = [
8+
{ column1: 123, color: "green" },
9+
{ column1: 234, date: "2022-11-01T02:49:57.038Z" },
10+
];
11+
12+
import React from 'react';
13+
import * as ReactDOM from 'react-dom';
14+
15+
1116
const root = ReactDOM.createRoot(document.body)
12-
root.render(<MyComponent />)
17+
root.render(<Spreadsheet />)

0 commit comments

Comments
 (0)
0