Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Svg as a component react

import React from 'react';
import {ReactComponent as ReactLogo} from './logo.svg';

const App = () => {
  return (
    <div className="App">
      <ReactLogo />
    </div>
  );
}
export default App;
Source by blog.logrocket.com #
 
PREVIOUS NEXT
Tagged: #Svg #component #react
ADD COMMENT
Topic
Name
7+3 =