mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: remove deprecated function in doctest example
This commit is contained in:
parent
8dc600ca02
commit
9ca36d4763
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ use leptos::{
|
||||||
/// #[component]
|
/// #[component]
|
||||||
/// fn MyApp() -> impl IntoView {
|
/// fn MyApp() -> impl IntoView {
|
||||||
/// provide_meta_context();
|
/// provide_meta_context();
|
||||||
/// let (prefers_dark, set_prefers_dark) = create_signal(false);
|
/// let (prefers_dark, set_prefers_dark) = signal(false);
|
||||||
/// let body_class = move || {
|
/// let body_class = move || {
|
||||||
/// if prefers_dark.get() {
|
/// if prefers_dark.get() {
|
||||||
/// "dark".to_string()
|
/// "dark".to_string()
|
||||||
|
|
Loading…
Reference in a new issue