範例節點隱藏隱藏節點和邊緣可以使用hidden 屬性來隱藏。這可以用於實作可展開/收合的圖表。index.htmlApp.tsxexport default function App() { const data: string = "world" return <h1>Hello {data}</h1> } 唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟功能概述深色模式