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
import "jquery"; | |
import "./style.scss"; | |
$(document).ready(function() { | |
console.log("I am working with jQuery. Sweet!!!!"); | |
let moviesList = []; | |
//Get Movies HTTP request! | |
const getMovies = () => { | |
const movieURL = |
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
import "jquery"; | |
import "./style.scss"; | |
$(document).ready(function() { | |
console.log("I am working with jQuery. Sweet!!!!"); | |
let moviesList = []; | |
//Get Movies HTTP request! | |
const getMovies = () => { | |
const movieURL = |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Exercise | |
// | |
// - When the checkbox is checked: | |
// - Fill in the shipping fields with the values from billing | |
// - Disable the shipping fields so they are not directly editable | |
// - Keep the shipping fields up to date as billing fields change | |
// - Hint: you can get the checkbox value from `event.target.checked` | |
// - When the form submits, console.log the values | |
// |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Exercise | |
// | |
// - When the checkbox is checked: | |
// 5- Fill in the shipping fields with the values from billing | |
// 6- Disable the shipping fields so they are not directly editable | |
// 7- Keep the shipping fields up to date as billing fields change | |
// - Hint: you can get the checkbox value from `event.target.checked` | |
// - When the form submits, console.log the values | |
// |
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
class Tabs extends React.Component { | |
state = { | |
activeTabIndex: 0 | |
}; | |
handleTabClick = event => { | |
this.setState({ | |
tabActivated: 1 | |
}); | |
}; |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Exercise: | |
// | |
// - Refactor App by creating a new component named `<GeoPosition>` | |
// - <GeoPosition> should use a child render callback that passes | |
// to <App> the latitude and longitude state | |
// - When you're done, <App> should no longer have anything but | |
// a render method | |
// | |
// Got extra time? |
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
import React, { Component } from "react"; | |
import getAddressFromCoords from "./utils/getAddressFromCoords"; | |
class GeoAddress extends Component { | |
state = { address: null }; | |
componentDidMount() { | |
//if what? | |
if (this.props.latitude && this.props.longitude) { |
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
import React from "react"; | |
import "./App.css"; | |
const MUSIC = [ | |
{ | |
name: "Radiohead", | |
albums: [ | |
{ | |
title: "The King of Limbs", | |
songs: [ |
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 AWS = require("aws-sdk"); | |
const s3 = new AWS.S3(); | |
let s3DataContents = []; | |
s3.listBuckets(function(err, data) { | |
if (err) { | |
console.log("Error", err); | |
} else { | |
data.Buckets.forEach(function(value) { |