---
title: "Discussion on \"How to use SVG in React.js Component\" | Hashnode"
description: "Discussion on \"How to use SVG in React.js Component\". Scalable vector graphics(SVG) images can be used in react.js components by simply applying the following steps;\n1  Convert the SVG to a react.js component\n import React from 'react';\n\n export const AnalyticIcon = (props) => {\n\n    return (\n        <s..."
url: "https://hashnode.com/posts/how-to-use-svg-in-reactjs-component/5ff4e089fc8177134fbb5c03"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to use SVG in React.js Component](https://adefisayo.hashnode.dev/how-to-use-svg-in-reactjs-component?utm_source=hashnode&utm_medium=feed)

Scalable vector graphics(SVG) images can be used in react.js components by simply applying the following steps; 1 Convert the SVG to a react.js component import React from 'react'; export const AnalyticIcon = (props) => { return ( <s...

Jan 5, 2021 · 2 min read · adefisayo.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#svg](https://hashnode.com/tag/svg)

## Written by

[Adefisayo Adeniji](https://hashnode.com/@Adefizzy)

@Adefizzy · Lagos, Nigeria

  
[View profile](https://hashnode.com/@Adefizzy)

Software Engineer

I am a software developer from Lagos, Nigeria.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
