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 React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { ViewPropTypes } from 'react-native'; | |
import Popup from './Popup'; | |
import Loader from './Loader'; | |
import LoadingError from './LoadingError'; | |
const AsyncPopup = ({ | |
style, |
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
now alias $(now ./build --public --static) play-it.now.sh |
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
module.exports.catchErrors = function catchErrors(fn) { | |
return function(...args) { | |
return fn(...args).catch(err => { | |
console.error(err) | |
}) | |
} | |
} |
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
const addNumber = assign({ | |
numbers: (ctx, event) => { | |
let { howMany = 5 } = event; | |
let toAdd = []; | |
for (let i = 0; i < howMany; i++) { | |
toAdd.push(Math.floor(Math.random() * 9)); | |
} | |
return [...ctx.numbers, ...toAdd]; |
OlderNewer