Skip to content

This library provides a function which takes an svg string and then converts into a jsx string. It can be used to on online svg to jsx editor or in a build process to convert svg files into jsx files.

Notifications You must be signed in to change notification settings

sandrinjoy/svg-to-jsx-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG to JSX String

This library provides a function which takes an svg string and then converts into a jsx string.

It can be used to on online svg to jsx editor or in a build process to convert svg files into jsx files.

Installation

npm install svg-to-jsx-string

Usage

import { svgToJsxString } from "svg-to-jsx-string";

const jsxString = svgToJsxString(svgString);

About

This library provides a function which takes an svg string and then converts into a jsx string. It can be used to on online svg to jsx editor or in a build process to convert svg files into jsx files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published