Skip to content

Commit 33e54df

Browse files
authored
Add console_error_panic_hook init
1 parent 335752c commit 33e54df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ fn App() -> View {
2121
}
2222

2323
fn main() {
24+
console_error_panic_hook::set_once();
2425
sycamore::render(App);
2526
console_log!("App mounted!");
2627
}

0 commit comments

Comments
 (0)