Skip to content

Instantly share code, notes, and snippets.

View smenshikov's full-sized avatar

Sergey Menshikov smenshikov

View GitHub Profile
@basarat
basarat / _app.tsx
Last active April 6, 2022 19:27
nextjs-typestyle 🌹
import App from 'next/app'
import { setStylesTarget } from 'typestyle'
export default class MyApp extends App {
componentDidMount() {
/**
* Hydrate typestyle
*/
setStylesTarget(document.getElementById('styles-target')!)
}