artembatura / zero-scriptsjs

A modular approach to develop modern JavaScript projects with minimal configuration.
MIT License
6 stars 1 forks source link

Add support for SVG components #640

Closed artembatura closed 3 years ago

artembatura commented 3 years ago
import { ReactComponent as Logo } from './logo.svg';

function App() {
  return (
    <div>
      {/* Logo is an actual React component */}
      <Logo />
    </div>
  );
}
artembatura commented 3 years ago

Origin

artembatura commented 3 years ago

See usage in react-svg-component example