Step 1: Open and clean the SVG
Drag the .svg onto app.svgsketch.com. Clean up stray groups and unused definitions first (Object > Clean Up Empty Groups, and SVGO options at export) so you ship a clean, minimal JSX tree rather than a literal copy of the original markup.
Step 2: Copy as React code
Choose Edit > Copy as Code > React (JSX). SVGSketch generates a self-contained function component and puts it on the clipboard. Vue (SFC), D3.js, and CSS + SVG targets sit in the same submenu, and plain SVG markup is Ctrl+Shift+C. The framework code targets are SVGSketch Pro features; SVG copy is free.
Step 3: Paste it into your codebase
Paste the component into your icon directory and import it like any React component. The output uses camelCase JSX attributes (strokeWidth, viewBox, fillRule) so it compiles without warnings, and the component accepts className and style props for styling from the call site.
Step 4: Use the CLI for TypeScript and CI
For typed output or automated pipelines, save the document as .svgs and run the CLI: svgsketch codegen icon.svgs -f react -o Icon.tsx --name Icon --typescript. The TypeScript mode emits a typed Props interface, and --var key=value fills template variables so one source can generate many themed variants.
Step 5: Theme with currentColor
To make the component inherit its color from CSS, set the artwork's fills to "currentColor" (via the XML Inspector, F12) before copying the code. Any color rule on the parent element then tints the icon - the standard pattern for icon systems that match button text color.