# Convert SVG to JSX This plugin replaces SVG attributes with their JSX-valid equivalents and deletes common JSX-invalid attribute strings. ## When is this useful? - If you're working on a React project with a lot of manual SVG manipulation. - If you're tired of repetitive find + replacing on the SVG assets pasted from Sketch or Illustrator. ## Example Say you have some SVG output from your graphics editor that you'd like to include in a React component. Using the markup directly will raise errors: ```jsx function Box() { return ( ) } ``` This plugin, accessible from the right-click menu and the main menu, will remove invalid properties and correct the casing of valid properties so you can use the SVG in a component's render method without errors: ```jsx function Box() { return ( ) } ``` For complex illustrations with several distinct components to be animated, this can be quite useful! ## When is this not useful? - If you want to automatically load SVG files to use directly as React components. Try https://github.com/jhamlet/svg-react-loader.