Prejsx - JSX-style HTML transpiler for Rust

I just published prejsx, a simple JSX-to-html transpiler for Rust. it supports evaluating basic math expressions with prejsx_math.

Example

use prejsx::render;

fn main() {
    let input = r#"<h1 className="title" style={{color: "blue"}}>Hello {2 * 2}!</h1>"#;
    let html = render(input);
    println!("{}", html);
}

Links

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.