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
<canvas id="canvas"></canvas> |
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
var Local = function() { | |
var path = document.location.pathname.split("/"); | |
path = path[4]; | |
var ajax = $.ajax({ | |
url: "/" + path + "/files" | |
}); | |
ajax.done(this.onGetFiles.bind(this)); | |
this.data = { | |
description: decodeURI(path) + "#no-index #crumbs", |
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
var axios = require('axios'); | |
var findPassTime = function(latitude, longitude) { | |
return axios.get('http://api.open-notify.org/iss-pass.json', { | |
params: { | |
lat: latitude, | |
lon: longitude | |
} | |
}) |
- In your
ReactDOM.render
call, wrap your components in aProvider
to provide the store to connected components. - Connect the
Board
component, mapping thelists
property of the state to thelists
prop of the board component. - Check that your initial state is being rendered at this point.
- Create a function called
repeat
which takes two arguments:- The first argument should be an arbitrary function,
fn
- The second argument should be a number,
n
- The first argument should be an arbitrary function,
repeat
should loopn
times- Each iteration of the loop, it should call
fn
- Create two more functions called
hello
andgoodbye
: