Get started with react-inlinesvg CDN

MIT licensed

React-inlinesvg is a library for rendering inline SVGs in React applications without making additional HTTP requests.

Tags:
  • react-component
  • react
  • svg
  • component

Stable version

Copied!

How to start using react-inlinesvg CDN


import React from 'react';
import { InlineSVG } from 'react-inlinesvg';

function Logo() {
  return (
    <div>
      <InlineSVG src="https://cdn.cdnhub.io/logos/3/32/32763.svg" width="50" height="50" />
    </div>
  );
}

export default Logo;

All versions