window_of_opportunity 0.2.0

window_of_opportunity is attempting to make a native react style library
1
2
3
4
5
6
7
use std::fmt::Debug;

use crate::{element::Element, state::Ctx};

pub trait Component: Debug {
    fn render(&self, ctx: &Ctx, children: Vec<Box<Element>>) -> Box<Element>;
}