Skip to content

Instantly share code, notes, and snippets.

View cezarneaga's full-sized avatar

Cezar Neaga cezarneaga

View GitHub Profile
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
export function withAppContext<
P extends { appContext?: AppContextInterface },
R = Omit<P, 'appContext'>
>(
Component: React.ComponentClass<P> | React.StatelessComponent<P>
): React.SFC<R> {
return function BoundComponent(props: R) {
return (
@cezarneaga
cezarneaga / internal-link.tsx
Created May 7, 2021 10:33
Next link with Chakra in TS
@cezarneaga
cezarneaga / cezar.md
Created November 4, 2021 21:12
Created from Remix Form!

test again

@cezarneaga
cezarneaga / test.md
Created November 4, 2021 21:19
Created from Remix Form!

works

@cezarneaga
cezarneaga / tailwind-config-utilities.ts
Created October 10, 2023 11:35
tailwind utility functions
const plugin = require('tailwindcss/plugin');
/** @type {import('tailwindcss').Config} */
module.exports = {
...
theme: {
extend: {},
...
},
plugins: [
// default utils