Created
July 3, 2020 14:33
-
-
Save marcoemrich/9537b3f72ae28f816b4bb7e714dcb97c to your computer and use it in GitHub Desktop.
JS-Testing: cell.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
export const Cell = ({ owner = '', cellNr, onClick } = { owner: '' }) => | |
<button | |
className={`cell cell_${cellNr}`} | |
data-cell-nr={cellNr} | |
onClick={onClick} | |
data-testid="cell"> | |
{owner} | |
</button>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment