Skip to content

Instantly share code, notes, and snippets.

View diselyuti's full-sized avatar
🏠
Working from home

Dima Selyutin diselyuti

🏠
Working from home
View GitHub Profile
@ELI7VH
ELI7VH / react-context-boilerplate.tsx
Last active January 18, 2025 18:51
React Context Boiler Plate - Typescript
import React, { createContext, useContext, useState, useEffect } from "react"
type Props = {
children: React.ReactNode
}
type Context = {
count: number
increment: () => void
}
@stereokai
stereokai / gist:36dc0095b9d24ce93b045e2ddc60d7a0
Last active January 6, 2025 16:03
CSS rounded corners with gradient border
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: padding-box, border-box;
}