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 { Mutation } from 'react-apollo'; | |
import { adopt } from 'react-adopt'; | |
import { gql } from 'apollo-boost'; | |
const INCREASE_COUNT = gql` | |
mutation increaseCount { | |
increaseCount { | |
id | |
currentCount |
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 countdownA = (limit) => { | |
for(let i = limit; i >= 1; i--) { | |
console.log('Now @ ' + i); | |
} | |
}; | |
const countdownB = (limit) => { | |
console.log('Now @ ' + limit); | |
if (limit === 1) return 1; | |