diff --git a/packages/yew/src/html/component/mod.rs b/packages/yew/src/html/component/mod.rs
index 63c3bd23435..9f212c0527b 100644
--- a/packages/yew/src/html/component/mod.rs
+++ b/packages/yew/src/html/component/mod.rs
@@ -293,7 +293,7 @@ mod tests {
scope: Scope::new(None),
props: Rc::new(()),
#[cfg(feature = "hydration")]
- creation_mode: crate::html::RenderMode,
+ creation_mode: crate::html::RenderMode::Hydration,
#[cfg(feature = "hydration")]
prepared_state: None,
};