Skip to content

Instantly share code, notes, and snippets.

@idmontie
Created April 7, 2018 01:17
Show Gist options
  • Save idmontie/77b49eb1cbf846b6361db37f7f693d3f to your computer and use it in GitHub Desktop.
Save idmontie/77b49eb1cbf846b6361db37f7f693d3f to your computer and use it in GitHub Desktop.
const Rectangle = ({ x, y }) => (
<div style={{ position: 'fixed', top: `${y}px`, left: `${x}px`, height: '10px', width: '10px', backgroundColor: 'black' }} />
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment