Skip to content

Instantly share code, notes, and snippets.

View jonasmarco's full-sized avatar
💻
Working from home

Jonas Tolentino jonasmarco

💻
Working from home
View GitHub Profile
@jonasmarco
jonasmarco / TelefoneBrasileiroInput.tsx
Last active May 23, 2022 02:20
Máscara simples para input de número de telefone brasileiro com 8 ou 9 dígitos e DDD - Versão TypeScript
import React from 'react'
import PropTypes from 'prop-types'
const TYPES = {
OITO: '9999-9999',
NOVE: '99999-9999',
SNOVE: '9 9999-9999',
DDDOITO: '(99)9999-9999',
@jonasmarco
jonasmarco / plopfile.js
Created June 8, 2021 23:42
A plop file example
module.exports = (plop) => {
plop.setGenerator('component', {
description: 'Create a component',
prompts: [
{
type: 'input',
name: 'name',
message: 'What is your component name?'
}
],