First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dynamic from 'next/dynamic'; | |
import withHydrationOnDemand from 'react-hydration-on-demand'; | |
export default function lazyLoadHydrate<T = Record<string, never>>( | |
module, | |
ssr = false, | |
loading = () => <span>Loading</span>, | |
) { | |
return withHydrationOnDemand({ | |
on: ['visible'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------------------- | |
// Flexbox SASS mixins | |
// The spec: http://www.w3.org/TR/css3-flexbox | |
// -------------------------------------------------- | |
// Flexbox display | |
@mixin flexbox { | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; |