將Switch Button 獨立出來,好處是可以復用。 Switch Button Component 程式碼如下: ( SwitchButton.js ) import React from 'react' ...
確定! 回上一頁