Skip to content

Instantly share code, notes, and snippets.

@scriptschat
Created May 25, 2020 14:35
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 scriptschat/59dcdbbfe36eb6c5c505c79806435d75 to your computer and use it in GitHub Desktop.
Save scriptschat/59dcdbbfe36eb6c5c505c79806435d75 to your computer and use it in GitHub Desktop.
import React from "react";
import { getDataTestAttribute } from "./helpers/attributeHelper";
function Workout({ name, target, group }) {
return (
<div {...getDataTestAttribute("workout-container")}>
<h4 data-test-id="workout-name">Name: {name}</h4>
<h6 data-test-id="workout-target">Target: {target}</h6>
<h6 data-test-id="workout-group">Group: {group}</h6>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment