resuma 0.4.6

Resuma - SSR + Resumability + Islands + Server Actions + JS Bridge for Rust
Documentation
1
2
3
4
5
6
7
//! Combine multiple event-handler JS bodies into one handler.

/// Merge JS handler bodies (for `onClick={ combine_js(&[a, b]) }` patterns).
pub fn combine_js(handlers: &[&str]) -> String {
    let body = handlers.join("\n");
    format!("(async (event, state, __resuma) => {{ {body} }})")
}