3 unstable releases

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

#470 in Game dev

Download history 124/week @ 2024-04-04 35/week @ 2024-04-11

159 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
~734K SLoC