範例邊緣簡易浮動邊緣簡易浮動邊緣這是浮動邊緣範例的簡化版本。它不像浮動邊緣範例那麼靈活,但邊緣會黏附在節點的頂部、右側、底部或左側。您可以在 utils.js 檔案中找到實作細節。index.htmlApp.tsxexport default function App() { const data: string = "world" return <h1>Hello {data}</h1> } 唯讀在 Stackblitz 中開啟在 Codesandbox 中開啟功能總覽深色模式