Skip to content

Instantly share code, notes, and snippets.

@CodeNinja47
Created January 19, 2023 09:48
Show Gist options
  • Save CodeNinja47/0a8182f1788ceb5dccc43f2782cb12dd to your computer and use it in GitHub Desktop.
Save CodeNinja47/0a8182f1788ceb5dccc43f2782cb12dd to your computer and use it in GitHub Desktop.
import React from "react";
import { SampleComponentProps } from "./SampleComponent.types";
import "./SampleComponent.scss";
const SampleComponent: React.FC<SampleComponentProps> = ({ text }) => (
<div
className="sample-component"
>
<h3>This is a Sample component</h3>
<div data-testid="sample-text" className="sample-text">{text}</div>
</div>
);
export default SampleComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment