首先有一個子元件(child component),我們設定一個props為userName,型態為String, ... 在HTML裡要用user-name來傳值,也就是說component的命名法 ...
確定! 回上一頁