Yew v0.21 Documentation
首页 白天 夜间 BookChat 小程序 小程序 下载 阅读记录
  • 书签 我的书签
  • 添加书签 添加书签 移除书签 移除书签

Communication between components

来源 yew.rs 浏览 1 扫码 打印 2026-10-24 12:50:35
  • Communication between components
    • Parent to child messaging
    • Child to parent messaging

Communication between components

Parent to child messaging

Pass data as props that cause a re-render, this is the way to pass messages to children.

Child to parent messaging

Pass down a callback via props, that the child on an event can call. Example

上一篇:
下一篇:
  • 书签
  • 添加书签 移除书签
  • Getting Started
    • Build a sample app
    • Examples
    • Editor Setup
  • Concepts
    • Using Basic Web Technologies In Yew
      • HTML with html!
      • CSS with classes!
      • JS with RS
      • wasm-bindgen
      • web-sys
    • Components
      • Properties
      • Callbacks
      • Children
      • Pure Components
      • Hooks
        • Custom Hooks
      • Node Refs
      • State
      • Communication between components
      • Generic Components
    • HTML
      • Components
      • Elements
      • Events
      • Classes
      • Fragments
      • Lists
      • Literals and Expressions
      • Conditional rendering
    • Agents
    • Contexts
    • Router
    • Suspense
  • Advanced topics
    • How it works
    • Struct Components
      • Higher Order Components
      • Lifecycle
      • Scope
      • Callbacks
      • Properties
      • Refs
    • Children
    • Optimizations
    • Portals
    • Server-side Rendering
    • Immutable Types
  • More
    • Debugging
    • Deployment
    • CSS
    • Testing apps
    • Roadmap
  • Migration guides
    • yew
      • From 0.20.0 to 0.21.0
      • From 0.19.0 to 0.20.0
      • From 0.18.0 to 0.19.0
    • yew-agent
      • From 0.1.0 to 0.2.0
      • From 0.0.0 to 0.1.0
    • yew-router
      • From 0.16.0 to 0.17.0
      • From 0.15.0 to 0.16.0
暂无相关搜索结果!

    本文档使用 WanXiangYunDang 构建

    展开/收起文章目录

    思维导图备注

    文章二维码

    手机扫一扫,轻松掌上读

    文档下载

    请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
    PDF文档 EPUB文档 MOBI文档

    微信小程序阅读

    BookChat 微信小程序阅读
    微信扫一扫,知识掌上学

    书签列表

      阅读记录

      阅读进度: 0.00% ( 0/0 ) 重置阅读进度