Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Warning: Each child in a list should have a unique 'key' prop - Unveiling the SVGR SVG Component Dilemma #935

Open
vpanichkin opened this issue Jan 15, 2024 · 1 comment

Comments

@vpanichkin
Copy link

Hey, folks. My issue is really weird and I need some help. I have a project where I am using svgr and now I am getting a warning from react.

The problem

image

Debugging path

Seems like an easy fix, but the problem is deeper. I researched and found out that the issue is caused by this SVG

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 35">
    <path d="M12.047 3.762H9.902V11h2.101c2.277 0 3.707-1.155 3.707-3.63 0-2.464-1.408-3.608-3.663-3.608Zm-.187 6.567h-1.144V4.422h1.232c1.793 0 2.926.803 2.926 2.959 0 2.167-1.133 2.948-3.014 2.948Zm5.48-5.764a.542.542 0 0 0 .539-.55.54.54 0 0 0-.539-.539.545.545 0 1 0 0 1.089ZM16.955 11h.77V5.61h-.77V11Zm2.286 0h.77V8.47c0-1.408.605-2.332 1.562-2.332.241 0 .418.044.538.099l.1-.704c-.066-.033-.231-.099-.561-.099-.595 0-1.331.308-1.662 1.309h-.021l-.198-1.133h-.528V11Zm8.457-2.761c0-1.639-1.067-2.805-2.573-2.805-1.552 0-2.651 1.188-2.651 2.86s1.11 2.86 2.683 2.86c1.189 0 1.915-.473 2.3-1.111l-.562-.418c-.264.385-.736.858-1.694.858-1.067 0-1.87-.847-1.925-1.991h4.422v-.253Zm-2.573-2.134c.924 0 1.639.748 1.76 1.782h-3.576c.143-1.045.88-1.782 1.816-1.782ZM32.37 11h.99l-2.475-2.75 2.277-2.64h-.902l-2.65 3.124h-.023V3.498l-.77.165V11h.77V9.768l.814-.957L32.371 11Zm3.719-.528c-.583 0-.825-.341-.825-1.1V6.204h1.342V5.61h-1.342V3.894l-.77.165V5.61h-.913v.594h.913V9.46c0 1.166.484 1.661 1.452 1.661.308 0 .616-.055.88-.187v-.649a1.59 1.59 0 0 1-.737.187Zm5.257.528h.99L39.86 8.25l2.277-2.64h-.902l-2.651 3.124h-.022V3.498l-.77.165V11h.77V9.768l.814-.957L41.346 11Zm5.881-.572c-.264 0-.396-.154-.396-.627v-2.31c0-1.397-.704-2.057-2.079-2.057-1.023 0-1.672.451-2.002 1.089l.594.396c.308-.517.704-.814 1.408-.814.924 0 1.31.484 1.31 1.485v.11l-1.079.154c-1.507.22-2.54.561-2.54 1.716 0 .946.703 1.562 1.781 1.562.946 0 1.606-.506 1.87-1.166h.022v.033c0 .605.286 1.056.924 1.056.231 0 .462-.055.616-.165v-.583a.902.902 0 0 1-.429.121Zm-2.926.033c-.627 0-1.067-.308-1.067-.935 0-.77.737-.957 1.76-1.1l1.067-.154v.121c0 1.485-.803 2.068-1.76 2.068Zm5.795.693c1.056 0 1.562-.605 1.77-1.144h.023l.209.99h.528V5.61h-.77v2.75c0 1.474-.605 2.123-1.551 2.123-.814 0-1.21-.451-1.21-1.43V5.61h-.77v3.575c0 1.298.616 1.969 1.77 1.969Zm5.974-7.161c.22 0 .451.044.65.132v-.66a1.953 1.953 0 0 0-.716-.121c-.979 0-1.595.528-1.595 1.672v.594h-.913v.594h.913V11h.77V6.204h1.397V5.61H55.18v-.517c0-.77.286-1.1.891-1.1ZM60.757 11h.78l2.08-5.39h-.803l-1.64 4.664h-.021l-1.64-4.664h-.857l2.1 5.39Zm5.973.154c1.606 0 2.739-1.188 2.739-2.86s-1.133-2.86-2.74-2.86c-1.605 0-2.75 1.188-2.75 2.86s1.145 2.86 2.75 2.86Zm0-.671c-1.111 0-1.947-.935-1.947-2.189s.836-2.189 1.947-2.189c1.11 0 1.947.935 1.947 2.189s-.836 2.189-1.947 2.189Zm3.894.517h.77V8.151c0-1.419.65-2.046 1.595-2.046.825 0 1.243.462 1.243 1.485V11h.77V7.502c0-1.397-.726-2.068-1.826-2.068-.89 0-1.496.407-1.793 1.144h-.022l-.209-.968h-.528V11Z" fill="#333" />
    <path d="M.475 33.07a.44.44 0 0 1 .062-.276c.006-.015.019-.004.025-.02a.266.266 0 0 0 .018-.095.868.868 0 0 0-.03-.162.78.78 0 0 1-.017-.364.517.517 0 0 0 0-.221.745.745 0 0 0-.077-.238.757.757 0 0 1-.055-.133.325.325 0 0 1 0-.084.661.661 0 0 1 .09-.107c.016-.015.04.008.052-.018.025-.05-.012-.108-.01-.168v-.034a.926.926 0 0 0-.031-.272c-.013-.037-.012-.116.014-.128.026-.011.025-.07.007-.138a2.365 2.365 0 0 1-.033-.15.647.647 0 0 1-.028-.176c.005-.016.016.006.023.006.007 0 .014-.009.02-.036.004-.026.017-.113.034-.115.031-.006.034-.201.062-.251a.707.707 0 0 0 .033-.34c-.01-.187-.01-.186.027-.3a.26.26 0 0 0 .012-.051c.01-.07.03-.084.054-.076a.066.066 0 0 0 .033 0c.031-.008.037-.049.014-.113a1.972 1.972 0 0 0-.096-.19.51.51 0 0 1-.052-.128.813.813 0 0 1-.009-.179.025.025 0 0 1 .012-.017.026.026 0 0 1 .02-.002c.016.008.033.064.042-.011a.183.183 0 0 0-.023-.125c0-.006-.005-.017-.008-.025-.031-.103-.03-.153.008-.195a.303.303 0 0 0 .043-.215c0-.069 0-.142-.008-.204-.013-.084 0-.084.018-.084a.045.045 0 0 0 .031-.035.566.566 0 0 0-.02-.12c-.01-.041-.024-.075-.034-.116a.334.334 0 0 1 0-.064c.006.007.012.017.018.023.018.02.038.051.057.056.018.005.033-.033.033-.052a.502.502 0 0 0-.022-.144c-.05-.06-.058-.197-.064-.307-.007-.134-.028-.207-.064-.242-.036-.034-.021-.066-.006-.096a.457.457 0 0 0 .026-.251c-.006-.053-.012-.134.018-.146.03-.012.037-.099.023-.176-.023-.117 0-.09.022-.093.021-.003.031-.006.038-.032a.563.563 0 0 0-.036-.247.727.727 0 0 1-.068-.094.515.515 0 0 1-.016-.099c.009 0 .019-.014.025 0 .045.071.072-.038.107-.06a.214.214 0 0 0 .006-.074.924.924 0 0 0-.023-.116c-.016-.066-.04-.12 0-.172a.187.187 0 0 0-.012-.168.592.592 0 0 1-.045-.104.71.71 0 0 1-.017-.099c.011-.012.022-.028.033-.033.01-.006.027.008.039 0a.073.073 0 0 0 .028-.053.427.427 0 0 0-.01-.124c-.054-.084-.044-.226-.034-.33a.357.357 0 0 0-.016-.186.537.537 0 0 1-.013-.084c.01 0 .02.003.028.008.007.006.013.025.02.03.007.007.01-.023.01-.025-.021-.079-.013-.204-.059-.244-.045-.04-.056-.148-.054-.25.002-.104.025-.136.05-.14.045-.01.054-.084.053-.21 0-.126.01-.15.052-.15.043 0 .053-.037.025-.167a.46.46 0 0 0-.03-.084.178.178 0 0 1-.01-.126.373.373 0 0 0-.014-.233 1.09 1.09 0 0 1-.033-.093c-.01-.033-.013-.056-.018-.084a.205.205 0 0 1 .007-.105c.014-.025.03-.046.043-.072a.163.163 0 0 0 .01-.084v-.06a.7.7 0 0 1-.006-.196c.002-.055.007-.11.017-.163a.089.089 0 0 0-.009-.064l-.01-.025c.013-.038.013-.111.035-.124a.177.177 0 0 0 .023-.116l-.016-.16a.566.566 0 0 0 .008-.107.187.187 0 0 0 0-.07v-.03c0-.047-.005-.093-.008-.125a1.34 1.34 0 0 1-.008-.153c0-.107.115-.252.093-.328-.01-.036-.023-.067-.032-.105-.025-.098-.024-.1.009-.154a.155.155 0 0 0 .021-.076.419.419 0 0 0-.023-.113c-.03-.079-.065-.146-.097-.22-.019-.046.084-.18.089-.256.01-.108.005-.217-.014-.324-.035-.083-.02-.07-.055-.159 0 0 .11-.229.1-.301a.392.392 0 0 1 .03-.059.108.108 0 0 0 .015-.038.137.137 0 0 0-.04-.154s-.156-.293.015-.35l.041-.071.024-.098a.8.8 0 0 1 .083-.219l.02-.02c.014-.012.046-.013.062-.018a.103.103 0 0 0 .039-.015.231.231 0 0 1 .076-.034.153.153 0 0 1 .115.002c.01.005.019.007.029.009 0 0 .096.016.224.05 4.591 1.218 20.572-.124 31.296-3.116.274-.076.723-.181.816-.205.093-.023.03.08-.07.165-.066.055-.4.112-.419.128-.02.016-.028.03-.025.039.069.158.489-.006.657-.027.167-.02.156.054.06.115-.147.094-.184.218-.118.28.013.014.044.01.057.024.012.014.048.058.041.077a.265.265 0 0 1-.073.11.208.208 0 0 0-.044.267.137.137 0 0 1 0 .167c-.043.07-.52.257-.598.29a.71.71 0 0 0-.168.084c-.013.01-.028.06-.02.066.065.04.564-.179.634-.148.037.017.629-.176.368.011-.057.041-.244.208-.24.251a.125.125 0 0 1-.003.026c-.01.07-.009.14-.077.192a.057.057 0 0 0-.018.06.057.057 0 0 0 .048.04c.084.025.055.062.014.105-.084.092-.364.217-.446.31-.009.01-.007.028-.01.043.016 0 .04.01.047.004.044-.05.103-.023.16-.048.13-.056.457-.176.503-.218.083-.078.208-.034.124.102-.027.044-.053.014-.08.093a.506.506 0 0 1-.089.107c-.056.06-.103.125-.04.176.095.075.088.167.07.264-.026.136-.028.136.054.234a.149.149 0 0 1 .03.042.115.115 0 0 0 .12.074c.025 0 .05.004.075.01.07.015.084.048.029.083-.068.04-.139.076-.211.108a.34.34 0 0 0-.123.077c-.025.032-.057.103-.022.131.056.045.257-.053.283-.054.026 0 .072-.037.093.022.02.06-.439.193-.473.211a.118.118 0 0 0-.02.016c-.073.066.066.084.161.106.084.018.34-.083.29-.028-.018.02-.168.093-.182.142-.023.072-.083.048-.083.071a.577.577 0 0 1-.024.15c-.03.059 0 .061.041.07.027.005-.005.058-.006.069a.158.158 0 0 1-.04.083c-.023.029-.055.049-.079.076-.008.01 0 .032 0 .049.014 0 .335-.095.351-.098a.619.619 0 0 1 .148-.03c.027 0 .128-.014.07.06-.023.03-.01.016-.116.064-.106.047-.096.04-.4.251-.07.043-.137.091-.2.145-.037.032.008.089.084.053.217-.098.678-.218.644-.142-.042.092-.128.156-.157.244-.036.109-.11.074-.145.099a.079.079 0 0 0 .037.129c.084.022.034.094 0 .147-.053.084.004.067.05.077.03.007.277-.042.293-.02.027.04-.183.144-.252.167a.471.471 0 0 0-.206.123c-.01.03-.053.096-.036.097.066-.003.132-.01.197-.022.188-.017.205-.096.303-.084.076.01-.137.062-.192.168-.04.083-.073.064-.094.083-.039.044-.094.076 0 .128.058.032.146.073.084.103a.1.1 0 0 0-.048.1c0 .03.061 0 .124.036.04.008.08.015.12.019a.73.73 0 0 1 .075.016c.025.01.11.013.114.033.003.02-.118.091-.137.099-.092.035-.242.136-.236.227 0 .027.288-.131.354-.093.065.037-.104.03-.143.128-.046.115-.216.096-.223.117a.115.115 0 0 1-.046.053c-.016.011-.02.04-.029.062a.39.39 0 0 0 .061 0c.017 0 .031-.015.048-.017.017-.002.02.02.02.023-.047.052-.167.11-.137.162.011.02.118-.04.196-.058.122-.027.105-.064.167-.068.062-.003.116-.054.094 0a.106.106 0 0 1-.084.051c-.05.008-.074.06-.063.06.05 0 .128.014.128.036 0 .038.052.018.073.038.021.019.168-.084.16.013a.4.4 0 0 1-.215.21c-.05.023-.194.083-.197.154 0 .1.426-.006.524.01.098.014.123.046.055.132a.231.231 0 0 1-.069.055c-.04.023-.05.045-.024.09.04.068.008.119-.053.159a.885.885 0 0 0-.126.104c-.014.015-.014.043-.021.066a.223.223 0 0 0 .072.012.874.874 0 0 1 .143-.032c.084 0 .084.02.056.1a.314.314 0 0 0-.02.111.245.245 0 0 1-.094.186c-.024.024-.053.043-.074.067-.059.066-.056.068.019.12.02.013.048.043.045.063a.12.12 0 0 1-.047.083c-.072.048.26-.038.335.213.009.084.283.13.231.168-.084.053-.179.083-.26.137a.376.376 0 0 0-.096.14c.022.02.045.038.07.053.013.011.03.02.036.035a.19.19 0 0 0 .183.11c.043.011.083.028.12.05a.632.632 0 0 1-.106.099c-.046.025-.106.027-.154.051-.047.025.052.038.028.077a.183.183 0 0 0-.006.12c0 .009.057.005.084.011.027.006.045.01.05.023a.084.084 0 0 1-.006.068c-.02.025-.196.05-.22.074-.05.052-.043.1.024.125.162.06.365.167.285.3-.036.06-.005.05.026.058.031.009.043 0 .063.01.06.015.063.035.017.083-.03.03-.207.095-.234.127-.006.008-.606.287.012.097.01 0 .077-.028.131-.05.042-.018.115-.027.163-.047.027-.01.067.022.076.052.009.03-.01.071-.058.084a.107.107 0 0 0-.069.043c-.03.075-.11.124-.105.221 0 .03-.056.07-.095.09a.201.201 0 0 0-.046.033c0 .016-.007.03-.01.047a.065.065 0 0 0 .024.02c.083.046.062.104.052.167-.009.05.208-.053.28-.034a.07.07 0 0 1 .035.016.07.07 0 0 1 .022.072.07.07 0 0 1-.021.032c-.05.06-.025.06.03.068.034.005.09.028.091.044a.343.343 0 0 1-.035.141c-.008.019-.04.029-.064.037-.051.02-.104.033-.154.053a.046.046 0 0 0-.02.04c0 .008.026.025.032.023.084-.046.144.018.21.05.036.017-.208.103-.115.142.074.032.076-.021.12-.02.1 0-.026.084-.186.09-.09.006-.127.104-.147.12-.036.028-.027.095.16.021.084-.034.354.102.263.135-.008 0-.14.084-.144.092-.03.038-.084.039-.028.092.035.016.012.059.048.073.015.006.094.004.107.012.027.015.145-.126.178-.052.012.029-.185.174-.211.193-.057.04-.2.103-.251.167-.016.021.13-.028.147-.04a.106.106 0 0 1 .142.01c.004.017-.227.084-.29.167-.022.032-.024.07-.06.098-.036.027-.054.047.01.064.021.006.34-.099.456-.084.116.015.007.076-.012.095-.02.02-.024.156-.04.167-.03.027-.12.084-.137.12-.039.09.602.167.499.215C17.478 36.77.865 33.273.469 33.108a.072.072 0 0 0 .006-.037Z" fill="#F5F200" />
    <path d="M72.398 28.218c.202-.158.405-.314.61-.472 1.88-1.448 3.825-2.946 3.825-5.134 0-1.715-1.238-2.912-3.01-2.912-1.555 0-3.231 1.041-3.231 3.328 0 .103.006.207.018.31l1.27-.49c0-1.256.936-1.916 1.86-1.916.899 0 1.805.571 1.805 1.842 0 1.652-1.687 2.945-4.02 4.735-.334.256-.678.52-1.036.8l-.02.017v1.218h6.626v-1.326h-4.697Zm-31.595-4.275-.115-.046c-1.044-.419-1.783-.79-1.783-1.726 0-.92.733-1.402 1.458-1.402.586 0 1.325.31 1.614.99l1.23-.474-.02-.047c-.483-1.201-1.758-1.74-2.81-1.74-1.376 0-2.857.868-2.857 2.774 0 1.86 1.423 2.44 2.57 2.906l.141.058c1.172.482 1.937.87 1.937 1.823 0 .988-.83 1.43-1.652 1.43s-1.785-.434-2.07-1.651l-.013-.054-1.304.495c.393 1.52 1.69 2.497 3.33 2.497.826 0 1.592-.25 2.164-.709.644-.516.985-1.256.985-2.133 0-1.873-1.49-2.468-2.805-2.991Zm13.801-1.715c-2.033 0-3.509 1.575-3.509 3.745s1.476 3.745 3.51 3.745c2.032 0 3.509-1.575 3.509-3.745s-1.477-3.745-3.51-3.745Zm2.222 3.745c0 1.66-1.11 2.527-2.207 2.527-1.111 0-2.236-.868-2.236-2.526 0-1.456.94-2.512 2.236-2.512 1.278 0 2.207 1.055 2.207 2.512Zm6.665.54c0 1.318-.966 2.028-1.874 2.028-.692 0-1.431-.412-1.431-1.57v-4.563h-1.261v4.563c0 2.028 1.315 2.747 2.44 2.747.906 0 1.704-.434 2.117-1.14l.24.973h1.027v-7.143h-1.258v4.105Zm4.543-6.141-1.256.486v1.55h-1.197v1.15h1.193v3.913c0 1.955 1.112 2.247 1.775 2.247.315-.004.628-.053.93-.144l.04-.011v-1.245l-.084.053c-.181.121-.392.19-.609.2-.502 0-.792-.364-.792-1v-4.01h1.485v-1.153h-1.485v-2.036Zm14.9 5.488v-2.898l-1.288.498v2.4h-2.89l3.524-6.008h-1.43l-3.727 6.338v.972h4.523v2.386h1.287v-2.386H84.6V25.86h-1.666Zm-33.35 1.524a2.059 2.059 0 0 1-1.826 1.101c-1.071 0-2.152-.78-2.152-2.526 0-1.204.647-2.498 2.068-2.498a1.883 1.883 0 0 1 1.675.997l1.203-.46-.022-.046c-.502-1.063-1.59-1.724-2.852-1.724a3.253 3.253 0 0 0-2.317.93c-.683.676-1.044 1.65-1.044 2.815 0 2.573 1.759 3.745 3.385 3.745 1.266 0 2.389-.69 3.002-1.847l.024-.045-.01-.005-1.133-.438ZM8.517 19.668H7.194l-4.264 9.88h1.56l1.018-2.444h4.702l1.013 2.444h1.562l-4.268-9.88Zm1.162 6.165H6.018l1.834-4.426 1.827 4.426Zm7.842-3.46v4.12c0 1.31-.96 2.017-1.864 2.017-.687 0-1.424-.41-1.424-1.559v-4.578h-1.28v4.578c0 .874.258 1.596.753 2.087a2.38 2.38 0 0 0 1.704.674c.9 0 1.694-.426 2.115-1.122l.235.955h1.048v-7.172h-1.287Zm6.123 1.176v-1.176h-1.486V20.33l-1.285.496v1.546H19.68v1.172h1.194v3.904c0 1.967 1.12 2.261 1.788 2.261.316-.002.63-.048.933-.136l.047-.015v-1.282l-.102.066a1.19 1.19 0 0 1-.603.198c-.496 0-.78-.361-.78-.99v-4.002h1.488Zm4.034-1.354c-1.037 0-1.926.383-2.575 1.108-.612.685-.948 1.626-.948 2.651s.335 1.973.948 2.657c.648.721 1.538 1.103 2.575 1.103 2.041 0 3.523-1.581 3.523-3.76s-1.482-3.76-3.523-3.76Zm.014 6.28c-1.106 0-2.225-.865-2.225-2.518 0-1.45.936-2.502 2.225-2.502 1.273 0 2.197 1.052 2.197 2.502 0 1.65-1.104 2.514-2.192 2.514l-.005.003Z" fill="#333" />
</svg>

Once I try to convert using SVGR, everything looks fine:

import * as React from "react"
const SvgComponent = (props) => (
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 35" {...props}>
    <path
      fill="#333"
      d="M12.047 3.762H9.902V11h2.101c2.277 0 3.707-1.155 3.707-3.63 0-2.464-1.408-3.608-3.663-3.608Zm-.187 6.567h-1.144V4.422h1.232c1.793 0 2.926.803 2.926 2.959 0 2.167-1.133 2.948-3.014 2.948Zm5.48-5.764a.542.542 0 0 0 .539-.55.54.54 0 0 0-.539-.539.545.545 0 1 0 0 1.089ZM16.955 11h.77V5.61h-.77V11Zm2.286 0h.77V8.47c0-1.408.605-2.332 1.562-2.332.241 0 .418.044.538.099l.1-.704c-.066-.033-.231-.099-.561-.099-.595 0-1.331.308-1.662 1.309h-.021l-.198-1.133h-.528V11Zm8.457-2.761c0-1.639-1.067-2.805-2.573-2.805-1.552 0-2.651 1.188-2.651 2.86s1.11 2.86 2.683 2.86c1.189 0 1.915-.473 2.3-1.111l-.562-.418c-.264.385-.736.858-1.694.858-1.067 0-1.87-.847-1.925-1.991h4.422v-.253Zm-2.573-2.134c.924 0 1.639.748 1.76 1.782h-3.576c.143-1.045.88-1.782 1.816-1.782ZM32.37 11h.99l-2.475-2.75 2.277-2.64h-.902l-2.65 3.124h-.023V3.498l-.77.165V11h.77V9.768l.814-.957L32.371 11Zm3.719-.528c-.583 0-.825-.341-.825-1.1V6.204h1.342V5.61h-1.342V3.894l-.77.165V5.61h-.913v.594h.913V9.46c0 1.166.484 1.661 1.452 1.661.308 0 .616-.055.88-.187v-.649a1.59 1.59 0 0 1-.737.187Zm5.257.528h.99L39.86 8.25l2.277-2.64h-.902l-2.651 3.124h-.022V3.498l-.77.165V11h.77V9.768l.814-.957L41.346 11Zm5.881-.572c-.264 0-.396-.154-.396-.627v-2.31c0-1.397-.704-2.057-2.079-2.057-1.023 0-1.672.451-2.002 1.089l.594.396c.308-.517.704-.814 1.408-.814.924 0 1.31.484 1.31 1.485v.11l-1.079.154c-1.507.22-2.54.561-2.54 1.716 0 .946.703 1.562 1.781 1.562.946 0 1.606-.506 1.87-1.166h.022v.033c0 .605.286 1.056.924 1.056.231 0 .462-.055.616-.165v-.583a.902.902 0 0 1-.429.121Zm-2.926.033c-.627 0-1.067-.308-1.067-.935 0-.77.737-.957 1.76-1.1l1.067-.154v.121c0 1.485-.803 2.068-1.76 2.068Zm5.795.693c1.056 0 1.562-.605 1.77-1.144h.023l.209.99h.528V5.61h-.77v2.75c0 1.474-.605 2.123-1.551 2.123-.814 0-1.21-.451-1.21-1.43V5.61h-.77v3.575c0 1.298.616 1.969 1.77 1.969Zm5.974-7.161c.22 0 .451.044.65.132v-.66a1.953 1.953 0 0 0-.716-.121c-.979 0-1.595.528-1.595 1.672v.594h-.913v.594h.913V11h.77V6.204h1.397V5.61H55.18v-.517c0-.77.286-1.1.891-1.1ZM60.757 11h.78l2.08-5.39h-.803l-1.64 4.664h-.021l-1.64-4.664h-.857l2.1 5.39Zm5.973.154c1.606 0 2.739-1.188 2.739-2.86s-1.133-2.86-2.74-2.86c-1.605 0-2.75 1.188-2.75 2.86s1.145 2.86 2.75 2.86Zm0-.671c-1.111 0-1.947-.935-1.947-2.189s.836-2.189 1.947-2.189c1.11 0 1.947.935 1.947 2.189s-.836 2.189-1.947 2.189Zm3.894.517h.77V8.151c0-1.419.65-2.046 1.595-2.046.825 0 1.243.462 1.243 1.485V11h.77V7.502c0-1.397-.726-2.068-1.826-2.068-.89 0-1.496.407-1.793 1.144h-.022l-.209-.968h-.528V11Z"
    />
    <path
      fill="#F5F200"
      d="M.475 33.07a.44.44 0 0 1 .062-.276c.006-.015.019-.004.025-.02a.266.266 0 0 0 .018-.095.868.868 0 0 0-.03-.162.78.78 0 0 1-.017-.364.517.517 0 0 0 0-.221.745.745 0 0 0-.077-.238.757.757 0 0 1-.055-.133.325.325 0 0 1 0-.084.661.661 0 0 1 .09-.107c.016-.015.04.008.052-.018.025-.05-.012-.108-.01-.168v-.034a.926.926 0 0 0-.031-.272c-.013-.037-.012-.116.014-.128.026-.011.025-.07.007-.138a2.365 2.365 0 0 1-.033-.15.647.647 0 0 1-.028-.176c.005-.016.016.006.023.006.007 0 .014-.009.02-.036.004-.026.017-.113.034-.115.031-.006.034-.201.062-.251a.707.707 0 0 0 .033-.34c-.01-.187-.01-.186.027-.3a.26.26 0 0 0 .012-.051c.01-.07.03-.084.054-.076a.066.066 0 0 0 .033 0c.031-.008.037-.049.014-.113a1.972 1.972 0 0 0-.096-.19.51.51 0 0 1-.052-.128.813.813 0 0 1-.009-.179.025.025 0 0 1 .012-.017.026.026 0 0 1 .02-.002c.016.008.033.064.042-.011a.183.183 0 0 0-.023-.125c0-.006-.005-.017-.008-.025-.031-.103-.03-.153.008-.195a.303.303 0 0 0 .043-.215c0-.069 0-.142-.008-.204-.013-.084 0-.084.018-.084a.045.045 0 0 0 .031-.035.566.566 0 0 0-.02-.12c-.01-.041-.024-.075-.034-.116a.334.334 0 0 1 0-.064c.006.007.012.017.018.023.018.02.038.051.057.056.018.005.033-.033.033-.052a.502.502 0 0 0-.022-.144c-.05-.06-.058-.197-.064-.307-.007-.134-.028-.207-.064-.242-.036-.034-.021-.066-.006-.096a.457.457 0 0 0 .026-.251c-.006-.053-.012-.134.018-.146.03-.012.037-.099.023-.176-.023-.117 0-.09.022-.093.021-.003.031-.006.038-.032a.563.563 0 0 0-.036-.247.727.727 0 0 1-.068-.094.515.515 0 0 1-.016-.099c.009 0 .019-.014.025 0 .045.071.072-.038.107-.06a.214.214 0 0 0 .006-.074.924.924 0 0 0-.023-.116c-.016-.066-.04-.12 0-.172a.187.187 0 0 0-.012-.168.592.592 0 0 1-.045-.104.71.71 0 0 1-.017-.099c.011-.012.022-.028.033-.033.01-.006.027.008.039 0a.073.073 0 0 0 .028-.053.427.427 0 0 0-.01-.124c-.054-.084-.044-.226-.034-.33a.357.357 0 0 0-.016-.186.537.537 0 0 1-.013-.084c.01 0 .02.003.028.008.007.006.013.025.02.03.007.007.01-.023.01-.025-.021-.079-.013-.204-.059-.244-.045-.04-.056-.148-.054-.25.002-.104.025-.136.05-.14.045-.01.054-.084.053-.21 0-.126.01-.15.052-.15.043 0 .053-.037.025-.167a.46.46 0 0 0-.03-.084.178.178 0 0 1-.01-.126.373.373 0 0 0-.014-.233 1.09 1.09 0 0 1-.033-.093c-.01-.033-.013-.056-.018-.084a.205.205 0 0 1 .007-.105c.014-.025.03-.046.043-.072a.163.163 0 0 0 .01-.084v-.06a.7.7 0 0 1-.006-.196c.002-.055.007-.11.017-.163a.089.089 0 0 0-.009-.064l-.01-.025c.013-.038.013-.111.035-.124a.177.177 0 0 0 .023-.116l-.016-.16a.566.566 0 0 0 .008-.107.187.187 0 0 0 0-.07v-.03c0-.047-.005-.093-.008-.125a1.34 1.34 0 0 1-.008-.153c0-.107.115-.252.093-.328-.01-.036-.023-.067-.032-.105-.025-.098-.024-.1.009-.154a.155.155 0 0 0 .021-.076.419.419 0 0 0-.023-.113c-.03-.079-.065-.146-.097-.22-.019-.046.084-.18.089-.256.01-.108.005-.217-.014-.324-.035-.083-.02-.07-.055-.159 0 0 .11-.229.1-.301a.392.392 0 0 1 .03-.059.108.108 0 0 0 .015-.038.137.137 0 0 0-.04-.154s-.156-.293.015-.35l.041-.071.024-.098a.8.8 0 0 1 .083-.219l.02-.02c.014-.012.046-.013.062-.018a.103.103 0 0 0 .039-.015.231.231 0 0 1 .076-.034.153.153 0 0 1 .115.002c.01.005.019.007.029.009 0 0 .096.016.224.05 4.591 1.218 20.572-.124 31.296-3.116.274-.076.723-.181.816-.205.093-.023.03.08-.07.165-.066.055-.4.112-.419.128-.02.016-.028.03-.025.039.069.158.489-.006.657-.027.167-.02.156.054.06.115-.147.094-.184.218-.118.28.013.014.044.01.057.024.012.014.048.058.041.077a.265.265 0 0 1-.073.11.208.208 0 0 0-.044.267.137.137 0 0 1 0 .167c-.043.07-.52.257-.598.29a.71.71 0 0 0-.168.084c-.013.01-.028.06-.02.066.065.04.564-.179.634-.148.037.017.629-.176.368.011-.057.041-.244.208-.24.251a.125.125 0 0 1-.003.026c-.01.07-.009.14-.077.192a.057.057 0 0 0-.018.06.057.057 0 0 0 .048.04c.084.025.055.062.014.105-.084.092-.364.217-.446.31-.009.01-.007.028-.01.043.016 0 .04.01.047.004.044-.05.103-.023.16-.048.13-.056.457-.176.503-.218.083-.078.208-.034.124.102-.027.044-.053.014-.08.093a.506.506 0 0 1-.089.107c-.056.06-.103.125-.04.176.095.075.088.167.07.264-.026.136-.028.136.054.234a.149.149 0 0 1 .03.042.115.115 0 0 0 .12.074c.025 0 .05.004.075.01.07.015.084.048.029.083-.068.04-.139.076-.211.108a.34.34 0 0 0-.123.077c-.025.032-.057.103-.022.131.056.045.257-.053.283-.054.026 0 .072-.037.093.022.02.06-.439.193-.473.211a.118.118 0 0 0-.02.016c-.073.066.066.084.161.106.084.018.34-.083.29-.028-.018.02-.168.093-.182.142-.023.072-.083.048-.083.071a.577.577 0 0 1-.024.15c-.03.059 0 .061.041.07.027.005-.005.058-.006.069a.158.158 0 0 1-.04.083c-.023.029-.055.049-.079.076-.008.01 0 .032 0 .049.014 0 .335-.095.351-.098a.619.619 0 0 1 .148-.03c.027 0 .128-.014.07.06-.023.03-.01.016-.116.064-.106.047-.096.04-.4.251-.07.043-.137.091-.2.145-.037.032.008.089.084.053.217-.098.678-.218.644-.142-.042.092-.128.156-.157.244-.036.109-.11.074-.145.099a.079.079 0 0 0 .037.129c.084.022.034.094 0 .147-.053.084.004.067.05.077.03.007.277-.042.293-.02.027.04-.183.144-.252.167a.471.471 0 0 0-.206.123c-.01.03-.053.096-.036.097.066-.003.132-.01.197-.022.188-.017.205-.096.303-.084.076.01-.137.062-.192.168-.04.083-.073.064-.094.083-.039.044-.094.076 0 .128.058.032.146.073.084.103a.1.1 0 0 0-.048.1c0 .03.061 0 .124.036.04.008.08.015.12.019a.73.73 0 0 1 .075.016c.025.01.11.013.114.033.003.02-.118.091-.137.099-.092.035-.242.136-.236.227 0 .027.288-.131.354-.093.065.037-.104.03-.143.128-.046.115-.216.096-.223.117a.115.115 0 0 1-.046.053c-.016.011-.02.04-.029.062a.39.39 0 0 0 .061 0c.017 0 .031-.015.048-.017.017-.002.02.02.02.023-.047.052-.167.11-.137.162.011.02.118-.04.196-.058.122-.027.105-.064.167-.068.062-.003.116-.054.094 0a.106.106 0 0 1-.084.051c-.05.008-.074.06-.063.06.05 0 .128.014.128.036 0 .038.052.018.073.038.021.019.168-.084.16.013a.4.4 0 0 1-.215.21c-.05.023-.194.083-.197.154 0 .1.426-.006.524.01.098.014.123.046.055.132a.231.231 0 0 1-.069.055c-.04.023-.05.045-.024.09.04.068.008.119-.053.159a.885.885 0 0 0-.126.104c-.014.015-.014.043-.021.066a.223.223 0 0 0 .072.012.874.874 0 0 1 .143-.032c.084 0 .084.02.056.1a.314.314 0 0 0-.02.111.245.245 0 0 1-.094.186c-.024.024-.053.043-.074.067-.059.066-.056.068.019.12.02.013.048.043.045.063a.12.12 0 0 1-.047.083c-.072.048.26-.038.335.213.009.084.283.13.231.168-.084.053-.179.083-.26.137a.376.376 0 0 0-.096.14c.022.02.045.038.07.053.013.011.03.02.036.035a.19.19 0 0 0 .183.11.454.454 0 0 1 .12.05.632.632 0 0 1-.106.099c-.046.025-.106.027-.154.051-.047.025.052.038.028.077a.183.183 0 0 0-.006.12c0 .009.057.005.084.011.027.006.045.01.05.023a.084.084 0 0 1-.006.068c-.02.025-.196.05-.22.074-.05.052-.043.1.024.125.162.06.365.167.285.3-.036.06-.005.05.026.058.031.009.043 0 .063.01.06.015.063.035.017.083-.03.03-.207.095-.234.127-.006.008-.606.287.012.097.01 0 .077-.028.131-.05.042-.018.115-.027.163-.047.027-.01.067.022.076.052.009.03-.01.071-.058.084a.107.107 0 0 0-.069.043c-.03.075-.11.124-.105.221 0 .03-.056.07-.095.09a.201.201 0 0 0-.046.033c0 .016-.007.03-.01.047a.065.065 0 0 0 .024.02c.083.046.062.104.052.167-.009.05.208-.053.28-.034a.07.07 0 0 1 .035.016.07.07 0 0 1 .022.072.07.07 0 0 1-.021.032c-.05.06-.025.06.03.068.034.005.09.028.091.044a.343.343 0 0 1-.035.141c-.008.019-.04.029-.064.037-.051.02-.104.033-.154.053a.046.046 0 0 0-.02.04c0 .008.026.025.032.023.084-.046.144.018.21.05.036.017-.208.103-.115.142.074.032.076-.021.12-.02.1 0-.026.084-.186.09-.09.006-.127.104-.147.12-.036.028-.027.095.16.021.084-.034.354.102.263.135-.008 0-.14.084-.144.092-.03.038-.084.039-.028.092.035.016.012.059.048.073.015.006.094.004.107.012.027.015.145-.126.178-.052.012.029-.185.174-.211.193-.057.04-.2.103-.251.167-.016.021.13-.028.147-.04a.106.106 0 0 1 .142.01c.004.017-.227.084-.29.167-.022.032-.024.07-.06.098-.036.027-.054.047.01.064.021.006.34-.099.456-.084.116.015.007.076-.012.095-.02.02-.024.156-.04.167-.03.027-.12.084-.137.12-.039.09.602.167.499.215C17.478 36.77.865 33.273.469 33.108a.072.072 0 0 0 .006-.037Z"
    />
    <path
      fill="#333"
      d="M72.398 28.218c.202-.158.405-.314.61-.472 1.88-1.448 3.825-2.946 3.825-5.134 0-1.715-1.238-2.912-3.01-2.912-1.555 0-3.231 1.041-3.231 3.328 0 .103.006.207.018.31l1.27-.49c0-1.256.936-1.916 1.86-1.916.899 0 1.805.571 1.805 1.842 0 1.652-1.687 2.945-4.02 4.735-.334.256-.678.52-1.036.8l-.02.017v1.218h6.626v-1.326h-4.697Zm-31.595-4.275-.115-.046c-1.044-.419-1.783-.79-1.783-1.726 0-.92.733-1.402 1.458-1.402.586 0 1.325.31 1.614.99l1.23-.474-.02-.047c-.483-1.201-1.758-1.74-2.81-1.74-1.376 0-2.857.868-2.857 2.774 0 1.86 1.423 2.44 2.57 2.906l.141.058c1.172.482 1.937.87 1.937 1.823 0 .988-.83 1.43-1.652 1.43s-1.785-.434-2.07-1.651l-.013-.054-1.304.495c.393 1.52 1.69 2.497 3.33 2.497.826 0 1.592-.25 2.164-.709.644-.516.985-1.256.985-2.133 0-1.873-1.49-2.468-2.805-2.991Zm13.801-1.715c-2.033 0-3.509 1.575-3.509 3.745s1.476 3.745 3.51 3.745c2.032 0 3.509-1.575 3.509-3.745s-1.477-3.745-3.51-3.745Zm2.222 3.745c0 1.66-1.11 2.527-2.207 2.527-1.111 0-2.236-.868-2.236-2.526 0-1.456.94-2.512 2.236-2.512 1.278 0 2.207 1.055 2.207 2.512Zm6.665.54c0 1.318-.966 2.028-1.874 2.028-.692 0-1.431-.412-1.431-1.57v-4.563h-1.261v4.563c0 2.028 1.315 2.747 2.44 2.747.906 0 1.704-.434 2.117-1.14l.24.973h1.027v-7.143h-1.258v4.105Zm4.543-6.141-1.256.486v1.55h-1.197v1.15h1.193v3.913c0 1.955 1.112 2.247 1.775 2.247.315-.004.628-.053.93-.144l.04-.011v-1.245l-.084.053c-.181.121-.392.19-.609.2-.502 0-.792-.364-.792-1v-4.01h1.485v-1.153h-1.485v-2.036Zm14.9 5.488v-2.898l-1.288.498v2.4h-2.89l3.524-6.008h-1.43l-3.727 6.338v.972h4.523v2.386h1.287v-2.386H84.6V25.86h-1.666Zm-33.35 1.524a2.059 2.059 0 0 1-1.826 1.101c-1.071 0-2.152-.78-2.152-2.526 0-1.204.647-2.498 2.068-2.498a1.883 1.883 0 0 1 1.675.997l1.203-.46-.022-.046c-.502-1.063-1.59-1.724-2.852-1.724a3.253 3.253 0 0 0-2.317.93c-.683.676-1.044 1.65-1.044 2.815 0 2.573 1.759 3.745 3.385 3.745 1.266 0 2.389-.69 3.002-1.847l.024-.045-.01-.005-1.133-.438ZM8.517 19.668H7.194l-4.264 9.88h1.56l1.018-2.444h4.702l1.013 2.444h1.562l-4.268-9.88Zm1.162 6.165H6.018l1.834-4.426 1.827 4.426Zm7.842-3.46v4.12c0 1.31-.96 2.017-1.864 2.017-.687 0-1.424-.41-1.424-1.559v-4.578h-1.28v4.578c0 .874.258 1.596.753 2.087a2.38 2.38 0 0 0 1.704.674c.9 0 1.694-.426 2.115-1.122l.235.955h1.048v-7.172h-1.287Zm6.123 1.176v-1.176h-1.486V20.33l-1.285.496v1.546H19.68v1.172h1.194v3.904c0 1.967 1.12 2.261 1.788 2.261.316-.002.63-.048.933-.136l.047-.015v-1.282l-.102.066a1.19 1.19 0 0 1-.603.198c-.496 0-.78-.361-.78-.99v-4.002h1.488Zm4.034-1.354c-1.037 0-1.926.383-2.575 1.108-.612.685-.948 1.626-.948 2.651s.335 1.973.948 2.657c.648.721 1.538 1.103 2.575 1.103 2.041 0 3.523-1.581 3.523-3.76s-1.482-3.76-3.523-3.76Zm.014 6.28c-1.106 0-2.225-.865-2.225-2.518 0-1.45.936-2.502 2.225-2.502 1.273 0 2.197 1.052 2.197 2.502 0 1.65-1.104 2.514-2.192 2.514l-.005.003Z"
    />
  </svg>
)
export default SvgComponent

But, the final transformation done by babel end up into

import * as React from "react";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
const SvgComponent = props => /*#__PURE__*/_jsxs("svg", {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: "0 0 90 35",
  ...props,
  children: [/*#__PURE__*/_jsx("path", {
    fill: "#333",
    d: "M12.047 3.762H9.902V11h2.101c2.277 0 3.707-1.155 3.707-3.63 0-2.464-1.408-3.608-3.663-3.608Zm-.187 6.567h-1.144V4.422h1.232c1.793 0 2.926.803 2.926 2.959 0 2.167-1.133 2.948-3.014 2.948Zm5.48-5.764a.542.542 0 0 0 .539-.55.54.54 0 0 0-.539-.539.545.545 0 1 0 0 1.089ZM16.955 11h.77V5.61h-.77V11Zm2.286 0h.77V8.47c0-1.408.605-2.332 1.562-2.332.241 0 .418.044.538.099l.1-.704c-.066-.033-.231-.099-.561-.099-.595 0-1.331.308-1.662 1.309h-.021l-.198-1.133h-.528V11Zm8.457-2.761c0-1.639-1.067-2.805-2.573-2.805-1.552 0-2.651 1.188-2.651 2.86s1.11 2.86 2.683 2.86c1.189 0 1.915-.473 2.3-1.111l-.562-.418c-.264.385-.736.858-1.694.858-1.067 0-1.87-.847-1.925-1.991h4.422v-.253Zm-2.573-2.134c.924 0 1.639.748 1.76 1.782h-3.576c.143-1.045.88-1.782 1.816-1.782ZM32.37 11h.99l-2.475-2.75 2.277-2.64h-.902l-2.65 3.124h-.023V3.498l-.77.165V11h.77V9.768l.814-.957L32.371 11Zm3.719-.528c-.583 0-.825-.341-.825-1.1V6.204h1.342V5.61h-1.342V3.894l-.77.165V5.61h-.913v.594h.913V9.46c0 1.166.484 1.661 1.452 1.661.308 0 .616-.055.88-.187v-.649a1.59 1.59 0 0 1-.737.187Zm5.257.528h.99L39.86 8.25l2.277-2.64h-.902l-2.651 3.124h-.022V3.498l-.77.165V11h.77V9.768l.814-.957L41.346 11Zm5.881-.572c-.264 0-.396-.154-.396-.627v-2.31c0-1.397-.704-2.057-2.079-2.057-1.023 0-1.672.451-2.002 1.089l.594.396c.308-.517.704-.814 1.408-.814.924 0 1.31.484 1.31 1.485v.11l-1.079.154c-1.507.22-2.54.561-2.54 1.716 0 .946.703 1.562 1.781 1.562.946 0 1.606-.506 1.87-1.166h.022v.033c0 .605.286 1.056.924 1.056.231 0 .462-.055.616-.165v-.583a.902.902 0 0 1-.429.121Zm-2.926.033c-.627 0-1.067-.308-1.067-.935 0-.77.737-.957 1.76-1.1l1.067-.154v.121c0 1.485-.803 2.068-1.76 2.068Zm5.795.693c1.056 0 1.562-.605 1.77-1.144h.023l.209.99h.528V5.61h-.77v2.75c0 1.474-.605 2.123-1.551 2.123-.814 0-1.21-.451-1.21-1.43V5.61h-.77v3.575c0 1.298.616 1.969 1.77 1.969Zm5.974-7.161c.22 0 .451.044.65.132v-.66a1.953 1.953 0 0 0-.716-.121c-.979 0-1.595.528-1.595 1.672v.594h-.913v.594h.913V11h.77V6.204h1.397V5.61H55.18v-.517c0-.77.286-1.1.891-1.1ZM60.757 11h.78l2.08-5.39h-.803l-1.64 4.664h-.021l-1.64-4.664h-.857l2.1 5.39Zm5.973.154c1.606 0 2.739-1.188 2.739-2.86s-1.133-2.86-2.74-2.86c-1.605 0-2.75 1.188-2.75 2.86s1.145 2.86 2.75 2.86Zm0-.671c-1.111 0-1.947-.935-1.947-2.189s.836-2.189 1.947-2.189c1.11 0 1.947.935 1.947 2.189s-.836 2.189-1.947 2.189Zm3.894.517h.77V8.151c0-1.419.65-2.046 1.595-2.046.825 0 1.243.462 1.243 1.485V11h.77V7.502c0-1.397-.726-2.068-1.826-2.068-.89 0-1.496.407-1.793 1.144h-.022l-.209-.968h-.528V11Z"
  }), /*#__PURE__*/_jsx("path", {
    fill: "#F5F200",
    d: "M.475 33.07a.44.44 0 0 1 .062-.276c.006-.015.019-.004.025-.02a.266.266 0 0 0 .018-.095.868.868 0 0 0-.03-.162.78.78 0 0 1-.017-.364.517.517 0 0 0 0-.221.745.745 0 0 0-.077-.238.757.757 0 0 1-.055-.133.325.325 0 0 1 0-.084.661.661 0 0 1 .09-.107c.016-.015.04.008.052-.018.025-.05-.012-.108-.01-.168v-.034a.926.926 0 0 0-.031-.272c-.013-.037-.012-.116.014-.128.026-.011.025-.07.007-.138a2.365 2.365 0 0 1-.033-.15.647.647 0 0 1-.028-.176c.005-.016.016.006.023.006.007 0 .014-.009.02-.036.004-.026.017-.113.034-.115.031-.006.034-.201.062-.251a.707.707 0 0 0 .033-.34c-.01-.187-.01-.186.027-.3a.26.26 0 0 0 .012-.051c.01-.07.03-.084.054-.076a.066.066 0 0 0 .033 0c.031-.008.037-.049.014-.113a1.972 1.972 0 0 0-.096-.19.51.51 0 0 1-.052-.128.813.813 0 0 1-.009-.179.025.025 0 0 1 .012-.017.026.026 0 0 1 .02-.002c.016.008.033.064.042-.011a.183.183 0 0 0-.023-.125c0-.006-.005-.017-.008-.025-.031-.103-.03-.153.008-.195a.303.303 0 0 0 .043-.215c0-.069 0-.142-.008-.204-.013-.084 0-.084.018-.084a.045.045 0 0 0 .031-.035.566.566 0 0 0-.02-.12c-.01-.041-.024-.075-.034-.116a.334.334 0 0 1 0-.064c.006.007.012.017.018.023.018.02.038.051.057.056.018.005.033-.033.033-.052a.502.502 0 0 0-.022-.144c-.05-.06-.058-.197-.064-.307-.007-.134-.028-.207-.064-.242-.036-.034-.021-.066-.006-.096a.457.457 0 0 0 .026-.251c-.006-.053-.012-.134.018-.146.03-.012.037-.099.023-.176-.023-.117 0-.09.022-.093.021-.003.031-.006.038-.032a.563.563 0 0 0-.036-.247.727.727 0 0 1-.068-.094.515.515 0 0 1-.016-.099c.009 0 .019-.014.025 0 .045.071.072-.038.107-.06a.214.214 0 0 0 .006-.074.924.924 0 0 0-.023-.116c-.016-.066-.04-.12 0-.172a.187.187 0 0 0-.012-.168.592.592 0 0 1-.045-.104.71.71 0 0 1-.017-.099c.011-.012.022-.028.033-.033.01-.006.027.008.039 0a.073.073 0 0 0 .028-.053.427.427 0 0 0-.01-.124c-.054-.084-.044-.226-.034-.33a.357.357 0 0 0-.016-.186.537.537 0 0 1-.013-.084c.01 0 .02.003.028.008.007.006.013.025.02.03.007.007.01-.023.01-.025-.021-.079-.013-.204-.059-.244-.045-.04-.056-.148-.054-.25.002-.104.025-.136.05-.14.045-.01.054-.084.053-.21 0-.126.01-.15.052-.15.043 0 .053-.037.025-.167a.46.46 0 0 0-.03-.084.178.178 0 0 1-.01-.126.373.373 0 0 0-.014-.233 1.09 1.09 0 0 1-.033-.093c-.01-.033-.013-.056-.018-.084a.205.205 0 0 1 .007-.105c.014-.025.03-.046.043-.072a.163.163 0 0 0 .01-.084v-.06a.7.7 0 0 1-.006-.196c.002-.055.007-.11.017-.163a.089.089 0 0 0-.009-.064l-.01-.025c.013-.038.013-.111.035-.124a.177.177 0 0 0 .023-.116l-.016-.16a.566.566 0 0 0 .008-.107.187.187 0 0 0 0-.07v-.03c0-.047-.005-.093-.008-.125a1.34 1.34 0 0 1-.008-.153c0-.107.115-.252.093-.328-.01-.036-.023-.067-.032-.105-.025-.098-.024-.1.009-.154a.155.155 0 0 0 .021-.076.419.419 0 0 0-.023-.113c-.03-.079-.065-.146-.097-.22-.019-.046.084-.18.089-.256.01-.108.005-.217-.014-.324-.035-.083-.02-.07-.055-.159 0 0 .11-.229.1-.301a.392.392 0 0 1 .03-.059.108.108 0 0 0 .015-.038.137.137 0 0 0-.04-.154s-.156-.293.015-.35l.041-.071.024-.098a.8.8 0 0 1 .083-.219l.02-.02c.014-.012.046-.013.062-.018a.103.103 0 0 0 .039-.015.231.231 0 0 1 .076-.034.153.153 0 0 1 .115.002c.01.005.019.007.029.009 0 0 .096.016.224.05 4.591 1.218 20.572-.124 31.296-3.116.274-.076.723-.181.816-.205.093-.023.03.08-.07.165-.066.055-.4.112-.419.128-.02.016-.028.03-.025.039.069.158.489-.006.657-.027.167-.02.156.054.06.115-.147.094-.184.218-.118.28.013.014.044.01.057.024.012.014.048.058.041.077a.265.265 0 0 1-.073.11.208.208 0 0 0-.044.267.137.137 0 0 1 0 .167c-.043.07-.52.257-.598.29a.71.71 0 0 0-.168.084c-.013.01-.028.06-.02.066.065.04.564-.179.634-.148.037.017.629-.176.368.011-.057.041-.244.208-.24.251a.125.125 0 0 1-.003.026c-.01.07-.009.14-.077.192a.057.057 0 0 0-.018.06.057.057 0 0 0 .048.04c.084.025.055.062.014.105-.084.092-.364.217-.446.31-.009.01-.007.028-.01.043.016 0 .04.01.047.004.044-.05.103-.023.16-.048.13-.056.457-.176.503-.218.083-.078.208-.034.124.102-.027.044-.053.014-.08.093a.506.506 0 0 1-.089.107c-.056.06-.103.125-.04.176.095.075.088.167.07.264-.026.136-.028.136.054.234a.149.149 0 0 1 .03.042.115.115 0 0 0 .12.074c.025 0 .05.004.075.01.07.015.084.048.029.083-.068.04-.139.076-.211.108a.34.34 0 0 0-.123.077c-.025.032-.057.103-.022.131.056.045.257-.053.283-.054.026 0 .072-.037.093.022.02.06-.439.193-.473.211a.118.118 0 0 0-.02.016c-.073.066.066.084.161.106.084.018.34-.083.29-.028-.018.02-.168.093-.182.142-.023.072-.083.048-.083.071a.577.577 0 0 1-.024.15c-.03.059 0 .061.041.07.027.005-.005.058-.006.069a.158.158 0 0 1-.04.083c-.023.029-.055.049-.079.076-.008.01 0 .032 0 .049.014 0 .335-.095.351-.098a.619.619 0 0 1 .148-.03c.027 0 .128-.014.07.06-.023.03-.01.016-.116.064-.106.047-.096.04-.4.251-.07.043-.137.091-.2.145-.037.032.008.089.084.053.217-.098.678-.218.644-.142-.042.092-.128.156-.157.244-.036.109-.11.074-.145.099a.079.079 0 0 0 .037.129c.084.022.034.094 0 .147-.053.084.004.067.05.077.03.007.277-.042.293-.02.027.04-.183.144-.252.167a.471.471 0 0 0-.206.123c-.01.03-.053.096-.036.097.066-.003.132-.01.197-.022.188-.017.205-.096.303-.084.076.01-.137.062-.192.168-.04.083-.073.064-.094.083-.039.044-.094.076 0 .128.058.032.146.073.084.103a.1.1 0 0 0-.048.1c0 .03.061 0 .124.036.04.008.08.015.12.019a.73.73 0 0 1 .075.016c.025.01.11.013.114.033.003.02-.118.091-.137.099-.092.035-.242.136-.236.227 0 .027.288-.131.354-.093.065.037-.104.03-.143.128-.046.115-.216.096-.223.117a.115.115 0 0 1-.046.053c-.016.011-.02.04-.029.062a.39.39 0 0 0 .061 0c.017 0 .031-.015.048-.017.017-.002.02.02.02.023-.047.052-.167.11-.137.162.011.02.118-.04.196-.058.122-.027.105-.064.167-.068.062-.003.116-.054.094 0a.106.106 0 0 1-.084.051c-.05.008-.074.06-.063.06.05 0 .128.014.128.036 0 .038.052.018.073.038.021.019.168-.084.16.013a.4.4 0 0 1-.215.21c-.05.023-.194.083-.197.154 0 .1.426-.006.524.01.098.014.123.046.055.132a.231.231 0 0 1-.069.055c-.04.023-.05.045-.024.09.04.068.008.119-.053.159a.885.885 0 0 0-.126.104c-.014.015-.014.043-.021.066a.223.223 0 0 0 .072.012.874.874 0 0 1 .143-.032c.084 0 .084.02.056.1a.314.314 0 0 0-.02.111.245.245 0 0 1-.094.186c-.024.024-.053.043-.074.067-.059.066-.056.068.019.12.02.013.048.043.045.063a.12.12 0 0 1-.047.083c-.072.048.26-.038.335.213.009.084.283.13.231.168-.084.053-.179.083-.26.137a.376.376 0 0 0-.096.14c.022.02.045.038.07.053.013.011.03.02.036.035a.19.19 0 0 0 .183.11.454.454 0 0 1 .12.05.632.632 0 0 1-.106.099c-.046.025-.106.027-.154.051-.047.025.052.038.028.077a.183.183 0 0 0-.006.12c0 .009.057.005.084.011.027.006.045.01.05.023a.084.084 0 0 1-.006.068c-.02.025-.196.05-.22.074-.05.052-.043.1.024.125.162.06.365.167.285.3-.036.06-.005.05.026.058.031.009.043 0 .063.01.06.015.063.035.017.083-.03.03-.207.095-.234.127-.006.008-.606.287.012.097.01 0 .077-.028.131-.05.042-.018.115-.027.163-.047.027-.01.067.022.076.052.009.03-.01.071-.058.084a.107.107 0 0 0-.069.043c-.03.075-.11.124-.105.221 0 .03-.056.07-.095.09a.201.201 0 0 0-.046.033c0 .016-.007.03-.01.047a.065.065 0 0 0 .024.02c.083.046.062.104.052.167-.009.05.208-.053.28-.034a.07.07 0 0 1 .035.016.07.07 0 0 1 .022.072.07.07 0 0 1-.021.032c-.05.06-.025.06.03.068.034.005.09.028.091.044a.343.343 0 0 1-.035.141c-.008.019-.04.029-.064.037-.051.02-.104.033-.154.053a.046.046 0 0 0-.02.04c0 .008.026.025.032.023.084-.046.144.018.21.05.036.017-.208.103-.115.142.074.032.076-.021.12-.02.1 0-.026.084-.186.09-.09.006-.127.104-.147.12-.036.028-.027.095.16.021.084-.034.354.102.263.135-.008 0-.14.084-.144.092-.03.038-.084.039-.028.092.035.016.012.059.048.073.015.006.094.004.107.012.027.015.145-.126.178-.052.012.029-.185.174-.211.193-.057.04-.2.103-.251.167-.016.021.13-.028.147-.04a.106.106 0 0 1 .142.01c.004.017-.227.084-.29.167-.022.032-.024.07-.06.098-.036.027-.054.047.01.064.021.006.34-.099.456-.084.116.015.007.076-.012.095-.02.02-.024.156-.04.167-.03.027-.12.084-.137.12-.039.09.602.167.499.215C17.478 36.77.865 33.273.469 33.108a.072.072 0 0 0 .006-.037Z"
  }), /*#__PURE__*/_jsx("path", {
    fill: "#333",
    d: "M72.398 28.218c.202-.158.405-.314.61-.472 1.88-1.448 3.825-2.946 3.825-5.134 0-1.715-1.238-2.912-3.01-2.912-1.555 0-3.231 1.041-3.231 3.328 0 .103.006.207.018.31l1.27-.49c0-1.256.936-1.916 1.86-1.916.899 0 1.805.571 1.805 1.842 0 1.652-1.687 2.945-4.02 4.735-.334.256-.678.52-1.036.8l-.02.017v1.218h6.626v-1.326h-4.697Zm-31.595-4.275-.115-.046c-1.044-.419-1.783-.79-1.783-1.726 0-.92.733-1.402 1.458-1.402.586 0 1.325.31 1.614.99l1.23-.474-.02-.047c-.483-1.201-1.758-1.74-2.81-1.74-1.376 0-2.857.868-2.857 2.774 0 1.86 1.423 2.44 2.57 2.906l.141.058c1.172.482 1.937.87 1.937 1.823 0 .988-.83 1.43-1.652 1.43s-1.785-.434-2.07-1.651l-.013-.054-1.304.495c.393 1.52 1.69 2.497 3.33 2.497.826 0 1.592-.25 2.164-.709.644-.516.985-1.256.985-2.133 0-1.873-1.49-2.468-2.805-2.991Zm13.801-1.715c-2.033 0-3.509 1.575-3.509 3.745s1.476 3.745 3.51 3.745c2.032 0 3.509-1.575 3.509-3.745s-1.477-3.745-3.51-3.745Zm2.222 3.745c0 1.66-1.11 2.527-2.207 2.527-1.111 0-2.236-.868-2.236-2.526 0-1.456.94-2.512 2.236-2.512 1.278 0 2.207 1.055 2.207 2.512Zm6.665.54c0 1.318-.966 2.028-1.874 2.028-.692 0-1.431-.412-1.431-1.57v-4.563h-1.261v4.563c0 2.028 1.315 2.747 2.44 2.747.906 0 1.704-.434 2.117-1.14l.24.973h1.027v-7.143h-1.258v4.105Zm4.543-6.141-1.256.486v1.55h-1.197v1.15h1.193v3.913c0 1.955 1.112 2.247 1.775 2.247.315-.004.628-.053.93-.144l.04-.011v-1.245l-.084.053c-.181.121-.392.19-.609.2-.502 0-.792-.364-.792-1v-4.01h1.485v-1.153h-1.485v-2.036Zm14.9 5.488v-2.898l-1.288.498v2.4h-2.89l3.524-6.008h-1.43l-3.727 6.338v.972h4.523v2.386h1.287v-2.386H84.6V25.86h-1.666Zm-33.35 1.524a2.059 2.059 0 0 1-1.826 1.101c-1.071 0-2.152-.78-2.152-2.526 0-1.204.647-2.498 2.068-2.498a1.883 1.883 0 0 1 1.675.997l1.203-.46-.022-.046c-.502-1.063-1.59-1.724-2.852-1.724a3.253 3.253 0 0 0-2.317.93c-.683.676-1.044 1.65-1.044 2.815 0 2.573 1.759 3.745 3.385 3.745 1.266 0 2.389-.69 3.002-1.847l.024-.045-.01-.005-1.133-.438ZM8.517 19.668H7.194l-4.264 9.88h1.56l1.018-2.444h4.702l1.013 2.444h1.562l-4.268-9.88Zm1.162 6.165H6.018l1.834-4.426 1.827 4.426Zm7.842-3.46v4.12c0 1.31-.96 2.017-1.864 2.017-.687 0-1.424-.41-1.424-1.559v-4.578h-1.28v4.578c0 .874.258 1.596.753 2.087a2.38 2.38 0 0 0 1.704.674c.9 0 1.694-.426 2.115-1.122l.235.955h1.048v-7.172h-1.287Zm6.123 1.176v-1.176h-1.486V20.33l-1.285.496v1.546H19.68v1.172h1.194v3.904c0 1.967 1.12 2.261 1.788 2.261.316-.002.63-.048.933-.136l.047-.015v-1.282l-.102.066a1.19 1.19 0 0 1-.603.198c-.496 0-.78-.361-.78-.99v-4.002h1.488Zm4.034-1.354c-1.037 0-1.926.383-2.575 1.108-.612.685-.948 1.626-.948 2.651s.335 1.973.948 2.657c.648.721 1.538 1.103 2.575 1.103 2.041 0 3.523-1.581 3.523-3.76s-1.482-3.76-3.523-3.76Zm.014 6.28c-1.106 0-2.225-.865-2.225-2.518 0-1.45.936-2.502 2.225-2.502 1.273 0 2.197 1.052 2.197 2.502 0 1.65-1.104 2.514-2.192 2.514l-.005.003Z"
  })]
});
export default SvgComponent;

Cleaning this up I see the following structure, where there is no key attribute next to fill or d.

import * as React from "react";
import { jsx as _jsx } from "react/jsx-runtime";
import { jsxs as _jsxs } from "react/jsx-runtime";
const SvgComponent = props => /*#__PURE__*/_jsxs("svg", {
  xmlns: "http://www.w3.org/2000/svg",
  viewBox: "0 0 90 35",
  ...props,
  children: [/*#__PURE__*/_jsx("path", {
    fill: "#333",
    d: ""
  }), /*#__PURE__*/_jsx("path", {
    fill: "#F5F200",
    d: ""
  }), /*#__PURE__*/_jsx("path", {
    fill: "#333",
    d: ""
  })]
});
export default SvgComponent;

Questions

  1. Why didn't SVGR specify key in this case?
  2. Is it a bug or am I missing some configuration property?

Any help is really welcome

@atiyehahmadi
Copy link

I have the similar problem in next js
Warning: A props object containing a "key" prop is being spread into JSX
React keys must be passed directly to JSX without using spread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants