Skip to content

Instantly share code, notes, and snippets.

View OnurGvnc's full-sized avatar
🎯
Focusing

Onur Guvenc OnurGvnc

🎯
Focusing
View GitHub Profile

OnurGvnc

@OnurGvnc
OnurGvnc / clearBrowserExtensionInjectionsBeforeHydration.ts
Last active June 14, 2024 12:54
removes injected HTML codes from browser extensions for react hydration
import { RemixBrowser } from '@remix-run/react'
import { startTransition, StrictMode } from 'react'
import { hydrateRoot } from 'react-dom/client'
function clearBrowserExtensionInjectionsBeforeHydration() {
document
.querySelectorAll(
[
'html > *:not(body, head)',
'script[src*="extension://"]',
@OnurGvnc
OnurGvnc / readme.md
Last active December 1, 2023 14:28
twgroup

twgroup``

usage

import React, { useState } from 'react'
import clsx from 'clsx'
import { twgroup } from '../lib/twgroup'