react-run 0.3.1

Run React code snippets/components from your command-line without config
1
2
3
4
5
6
7
8
9
10
11
12
pub mod build;
pub mod config;
pub mod server;

#[tokio::main]
async fn main() {
    let args = config::get_args();
    let app = build::react_app(&args.file);
    let port = format!("localhost:{}", args.port);

    server::serve(&app, &port, !args.nobrowser).await;
}