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
| <canvas id="canvas"></canvas> |
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
| 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 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
| 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.rendercall, wrap your components in aProviderto provide the store to connected components. - Connect the
Boardcomponent, mapping thelistsproperty of the state to thelistsprop of the board component. - Check that your initial state is being rendered at this point.
- Create a function called
repeatwhich 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,
repeatshould loopntimes- Each iteration of the loop, it should call
fn - Create two more functions called
helloandgoodbye: