Prejsx - JSX-style HTML transpiler for Rust

⚓ Rust    📅 2025-10-12    👤 surdeus    👁️ 1      

surdeus

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 post - 1 participant

Read full topic

🏷️ Rust_feed