Skip to content

Instantly share code, notes, and snippets.

View Developerayo's full-sized avatar
🐾
probably nothing

Shodipo Ayomide Developerayo

🐾
probably nothing
View GitHub Profile
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
@Developerayo
Developerayo / if-correct-recursion.js
Created February 19, 2018 18:50 — forked from chalu/if-correct-recursion.js
A number of countdown implementations to review
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;