Skip to content

Commit e529135

Browse files
committed
🐞 fix: wrap console.log
1 parent e0401ad commit e529135

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

website/src/App.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@ function App() {
1919
const [result, setResult] = useState<any[][]>([[]]);
2020
const output = useMemo(
2121
() =>
22-
result.map((item) => {
23-
let res = "";
24-
for (const i of item) {
25-
res += i;
26-
}
27-
res += "\n";
28-
return res;
29-
}),
22+
result
23+
.map((item) => {
24+
return item.toString();
25+
})
26+
.map((item) => <div>{item}</div>),
3027
[result]
3128
);
3229
const handleEditorChange = (value: string | undefined, event: any) => {

0 commit comments

Comments
 (0)