Skip to content

Instantly share code, notes, and snippets.

View hugoalmeidahh's full-sized avatar
👨‍💻
Coding!!!

Hugo Almeida hugoalmeidahh

👨‍💻
Coding!!!
View GitHub Profile
import { useState, createContext, useContext } from 'react'
// Lift state up -> Levantar o estado
// Context API
// Prop Drilling
type CartContextType = {
productsInCart: string[];
addProductToCart: (name: string) => void;
.DayPicker {
background: #28262e;
border-radius: 10px;
}
.DayPicker-wrapper {
padding-bottom: 0;
}
.DayPicker,
@diego3g
diego3g / settings.json
Last active July 24, 2024 20:25
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 15,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],