This file contains hidden or 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 React from "react"; | |
export default class IntersectionObserver extends React.Component { | |
static defaultProps = { | |
root: null, | |
rootMargin: undefined, | |
threshold: 0, | |
onChange: () => null, | |
render: () => null | |
}; |
This file contains hidden or 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 * as theme from "./theme.js"; | |
import { ThemeProvider } from 'styled-components'; | |
export const App = (props) => | |
<ThemeProvider {...props} theme={theme} /> |
This file contains hidden or 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
const myPuzzle = [ | |
1, null, 9, null, null, null, null, 6, null, | |
5, 3, null, null, 7, null, null, null, null, | |
null, null, 4, null, 2, 6, null, null, null, | |
null, 5, null, null, null, null, null, null, 4, | |
null, 7, null, 6, 3, 4, null, 2, null, |
This file contains hidden or 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 React, {Component} from 'react'; | |
import join from 'join-classnames'; | |
import styles from './DrawerFaC.css'; | |
export default class DrawerFaC extends Component { | |
static defaultProps = { | |
open: false | |
}; |
This file contains hidden or 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
.wrapper { | |
padding: 1em; | |
text-align: center; | |
} | |
.title { | |
font-family: var(--serif, Serif); | |
font-weight: normal; | |
text-transform: capitalize; | |
} |
This file contains hidden or 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
const Component = ({title, subtitle, className, ...props}) => ( | |
<a className={`myClass ${className}`} {...props}> | |
<h1>{title}</h1> | |
<h2>{subtitle}</h2> | |
</a> | |
); |
This file contains hidden or 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 {Component} from 'react'; | |
export default class extends Component { | |
state = { | |
open: false | |
}; | |
toggle = () => { | |
this.setState(({open}) => ({open: !open})) | |
}; |
This file contains hidden or 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 compose from '@tuxsudo/compose'; | |
import {connect} from 'react-redux'; | |
import appendLifeCycle from '../hocs/append-life-cycle.js'; | |
import appendServerAction from '../hocs/append-server-action.js'; | |
import appendMetaDatas from '../hocs/append-meta-data.js' | |
import LandingTemplate from '../templates/Landing.js'; | |
export const finalComponent = compose( |
This file contains hidden or 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
export const pauseAndPass = (time) => (data) => new Promise( (resolve) => { | |
setTimeout( () => resolve(data) , time) | |
}); | |
export default pauseAndPass; |
NewerOlder