【文件属性】:
文件名称:react-inlinesvg:ReactJS的SVG加载器组件
文件大小:317KB
文件格式:ZIP
更新时间:2021-02-05 22:09:17
react svg react-components remote-svgs ReactTypeScript
React在线
在您的React组件中加载内联,本地或远程SVG。
强调
:beach_with_umbrella: 易于使用:只需设置src
:hammer_and_wrench: 灵活:个性化选项以满足您的需求
:high_voltage: 智能:异步请求将被缓存。
:rocket: SSR:渲染加载器,直到DOM可用为止
:blue_square: 打字稿:打字很好
用法
npm i react-inlinesvg
并将其导入您的代码:
import React , { useRef } from 'react' ;
import SVG , { Props as SVGProps } from 'react-inlinesvg' ;
const Logo = React . forwardRef < SV
【文件预览】:
react-inlinesvg-master
----.travis.yml(384B)
----.eslintrc(2KB)
----package.json(4KB)
----.github()
--------ISSUE_TEMPLATE()
----test()
--------index.spec.tsx(12KB)
--------__setup__()
--------__fixtures__()
--------tsconfig.json(105B)
--------__snapshots__()
--------unsupported.spec.tsx(2KB)
----.prettierignore(26B)
----.codesandbox()
--------ci.json(29B)
----LICENSE(1KB)
----package-lock.json(642KB)
----jest.config.ts(848B)
----CONTRIBUTING.md(841B)
----src()
--------helpers.ts(2KB)
--------types.ts(1KB)
--------index.tsx(9KB)
----tsconfig.json(216B)
----.gitignore(75B)
----demo()
--------package.json(799B)
--------.prettierrc(200B)
--------sandbox.config.json(88B)
--------src()
--------tsconfig.json(498B)
--------public()
----.codeclimate.yml(525B)
----README.md(6KB)
----.editorconfig(235B)