安装插件: yarn add @svgr/parcel-plugin-svgr; 导入svg: import MyIcon from 'my-icon.svg'; 用作任何其他组件: <MyIcon />. 另外,如果您正在运行Typescript,请 ...
確定! 回上一頁