Skip to content

Commit 2fe739f

Browse files
committed
Update example
1 parent 76e1266 commit 2fe739f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsonToCSV.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function JsonToCSV() {
66
const { jsonToCSV } = usePapaParse();
77

88
const handleJsonToCSV = () => {
9-
const jsonData = `[
9+
const jsonData = [
1010
{
1111
"Column 1": "1-1",
1212
"Column 2": "1-2",
@@ -31,7 +31,7 @@ export default function JsonToCSV() {
3131
"Column 3": 6,
3232
"Column 4": 7
3333
}
34-
]`;
34+
];
3535
const results = jsonToCSV(jsonData);
3636
console.log('---------------------------');
3737
console.log('Results:', results);

0 commit comments

Comments
 (0)