Skip to content

Instantly share code, notes, and snippets.

View tavareshenrique's full-sized avatar
💭
think different.

Henrique Tavares tavareshenrique

💭
think different.
View GitHub Profile
import React from 'react';
import { render, fireEvent, waitFor } from '@testing-library/react';
import { FiMail } from 'react-icons/fi';
import colors from '~/styles/colors';
import Input from '~/components/Input';
jest.mock('@unform/core', () => ({
@tavareshenrique
tavareshenrique / reset-button-style.css
Created July 14, 2020 00:58
Reset CSS button style
button {
background: none;
color: inherit;
border: none;
padding: 0;
font: inherit;
cursor: pointer;
outline: inherit;
}
{
"env": {
"browser": true,
"es2020": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
@tavareshenrique
tavareshenrique / AsyncSelect.js
Created January 16, 2021 15:07
AsyncSelect Component
import React, { useCallback } from "react";
import debounce from "lodash/debounce";
import AsyncSelect from "react-select/async";
import axios from "axios";
const App = (props) => {
const options = [
{ label: "Option 1", value: 1 },
{ label: "Option 2", value: 2 },
{ label: "Option 3", value: 3 }
@tavareshenrique
tavareshenrique / launch.json
Last active January 19, 2021 18:29
Microsoft Edge (dev) VSCode Debug (Linux)
{
// Remember install the Debugger for Microsoft Edge Extension.
// https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-edge
"version": "0.2.0",
"configurations": [
{
"type": "edge",
"request": "launch",
"name": "Launch Edge against localhost",
"url": "http://localhost:3000",
interface User {
email: string;
password: string;
avatar_url?: string;
}
// Partial<Type>
type PartialUser = Partial<User>;
/**
type PartialUser = {
GetNinjas

Site-Clientes