Skip to content

Instantly share code, notes, and snippets.

@gion
Last active February 14, 2020 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gion/9e5e2f124d7621e751810f26b2f41b3a to your computer and use it in GitHub Desktop.
Save gion/9e5e2f124d7621e751810f26b2f41b3a to your computer and use it in GitHub Desktop.
import React from "react";
export default ({ artifacts, width, height }) => (
<svg width={width} height={height}>
<g transform={`translate(${width / 2}, ${height / 2})`}>
{artifacts.map((item, index) => (
<circle
r={item.radius}
color={item.color}
key={index}
/>
))}
</g>
</svg>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment