範例節點更新節點更新節點只要將新建立的 nodes 或 edges 陣列傳遞給 ReactFlow,您就可以自由更新節點和邊緣的屬性。 您必須在節點上建立新的 data 物件,才能通知 React Flow 關於資料變更。index.htmlApp.tsxexport default function App() { const data: string = "world" return <h1>Hello {data}</h1> } 唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟功能概覽深色模式