CSS must be server-side rendered or you'll end up with a flash of unstyled content (FOUC).
styled-jsx Docs: Server-Side Rendering
// next.config.js
import Document, { | |
DocumentContext, | |
Head, | |
Html, | |
Main, | |
NextScript, | |
} from 'next/document' | |
import { CSSProperties, ServerStyleSheet } from 'styled-components' | |
import { AppContextProps } from 'YOUR APP CONTEXT' | |
interface PageDocumentProps { |
const sleepSort = (arr) => { | |
const { length } = arr | |
const result = [] | |
return new Promise((resolve) => { | |
for (let index = 0; index < length; index++) { | |
const value = arr[index]; | |
setTimeout(() => { | |
result.push(value) |
const bypass = [ | |
// function names to avoid logging | |
]; | |
const collapsed = [ | |
// function names to groupCollapsed | |
]; | |
module.exports = function(babel) { | |
const { types: t } = babel; | |
const wrapFunctionBody = babel.template(`{ |
CSS must be server-side rendered or you'll end up with a flash of unstyled content (FOUC).
styled-jsx Docs: Server-Side Rendering
// next.config.js
Git freak como sou, precisava compartilhar algo útil sobre ele, claro. E, já que não vejo muito por aí o pessoal usando, resolvi falar dos alias do git! É um recurso que eu uso muito, e nunca entendi porque muitas pessoas não são adeptas. 😕
Pelo nome você já deve perceber que os alias no git são atalhos. Atalhos pro quê? São atalhos para comandos do git e até comandos shell se você quiser. E é bem fácil cadastrar um alias:
$ git config --global alias.st status
curl --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" -v $@ | |