3 unstable releases

0.2.0-alpha.2 Apr 25, 2024
0.2.0-alpha.1 Apr 24, 2024
0.1.0 Apr 10, 2024

#620 in Game dev

Download history 139/week @ 2024-04-05 20/week @ 2024-04-12 120/week @ 2024-04-19 49/week @ 2024-04-26

328 downloads per month

MIT/Apache

32KB
281 lines

bevy-compose

Crates.io version docs.rs docs CI status

Reactive UI framework for Bevy

fn app() -> impl Compose {
    lazy(|mut count: UseState<i32>| {
        let (mut count, _count_entity) = count.use_state(|| 0);

        dbg!(*count);

        *count += 1;
    })
}

fn main() {
    bevy_compose::run(app);
}

Inspiration

This crate is inspired by Xilem, Concoct and SwiftUI with its typed approach to reactivity.

Dependencies

~18–47MB
~736K SLoC