Skip to main content

PropsFactory

Trait PropsFactory 

Source
pub trait PropsFactory<S, C, A, Ctx>: 'static
where C: InteractiveComponent<A, Ctx> + 'static,
{ // Required method fn props<'a>(&self, state: &'a S) -> C::Props<'a>; }
Expand description

Factory that builds component props from store state.

Required Methods§

Source

fn props<'a>(&self, state: &'a S) -> C::Props<'a>

Implementors§

Source§

impl<S, C, A, Ctx, F> PropsFactory<S, C, A, Ctx> for F
where C: InteractiveComponent<A, Ctx> + 'static, F: for<'a> Fn(&'a S) -> C::Props<'a> + 'static,