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

#647 in Game dev

Download history 147/week @ 2024-04-06 12/week @ 2024-04-13 151/week @ 2024-04-20 18/week @ 2024-04-27

189 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–48MB
~737K SLoC