Skip to content

Instantly share code, notes, and snippets.

View diegorondao's full-sized avatar
💻

Diego Rondão diegorondao

💻
View GitHub Profile
@diegorondao
diegorondao / Button.tsx
Created September 4, 2023 19:59 — forked from diiegoburiti/Button.tsx
Button test with react-testing-library and jest
import * as S from './styles'
export type ButtonProps = {
children: React.ReactNode
disabled?: boolean
}
const ButtonTest = ({ children, disabled = false }: ButtonTestProps) => (
<S.Wrapper disabled={disabled}>{children}</S.Wrapper>
)