Created
January 19, 2023 09:48
-
-
Save CodeNinja47/0a8182f1788ceb5dccc43f2782cb12dd to your computer and use it in GitHub Desktop.
This file contains 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"; | |
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