pub fn create_effect<F>(f: F) -> EffectIdwhere F: Fn() + 'static,
Create an effect that runs when its dependencies change