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 todoMachine = Machine({ | |
id: "todo", | |
initial: "reading", | |
context: { | |
id: undefined, | |
title: "", | |
prevTitle: "" | |
}, | |
on: { | |
TOGGLE_COMPLETE: { |
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 fetchProjections = amount => | |
new Promise((resolve, reject) => { | |
console.log('Fetching ', amount); | |
const projections = {monthlyEstimate: 120, maxAge: 80}; | |
resolve(projections); | |
}); | |
const validateInput = (input, mimimum) => | |
new Promise((resolve, reject) => { | |
if (input >= mimimum) { |
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 fetchProjections = amount => | |
new Promise((resolve, reject) => { | |
console.log('Fetching ', amount); | |
const projections = {monthlyEstimate: 120, maxAge: 80}; | |
resolve(projections); | |
}); | |
const validateInput = (input, mimimum) => | |
new Promise((resolve, reject) => { | |
if (input >= mimimum) { |
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 fetchProjections = amount => | |
new Promise((resolve, reject) => { | |
console.log('Fetching ', amount); | |
const projections = {monthlyEstimate: 120, maxAge: 80}; | |
resolve(projections); | |
}); | |
const validateInput = (input, mimimum) => | |
new Promise((resolve, reject) => { | |
if (input >= mimimum) { |
NewerOlder