score:1

Accepted answer

i managed to use different colors by creating a component that return that svg and accept props

const icon = (props) => (
  <svg>
    <g>
      <path fill={props.outside} />
      <path fill={props.inside} />
    </g>
  </svg>
)
...
<icon outside='#000' inside='red'/>

Related Query

More Query from same tag