エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
GitHub - leptos-rs/leptos: Build fast web applications with Rust.
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
GitHub - leptos-rs/leptos: Build fast web applications with Rust.
use leptos::*; #[component] pub fn SimpleCounter(initial_value: i32) -> impl IntoView { // create... use leptos::*; #[component] pub fn SimpleCounter(initial_value: i32) -> impl IntoView { // create a reactive signal with the initial value let (value, set_value) = create_signal(initial_value); // create event handlers for our buttons // note that `value` and `set_value` are `Copy`, so it's super easy to move them into closures let clear = move |_| set_value(0); let decrement = move |_| set_value.