I hereby claim:
- I am tmikeschu on github.
- I am tmikeschu (https://keybase.io/tmikeschu) on keybase.
- I have a public key ASCIdRcmFIiVsvYwtN_m86LtNtXjHdM2f5USbYWd5te5TQo
To claim this, I am signing this object:
| import { connect } from 'react-redux'; | |
| import { bindActionCreators } from 'redux'; | |
| import * as actions from '../../../redux/actions'; | |
| import withPhotos from './withPhotos'; | |
| import Sidebar from './sidebar'; | |
| const mapStateToProps = state => state; | |
| const mapDispatchToProps = dispatch => ({ |
I hereby claim:
To claim this, I am signing this object:
| { | |
| "private": true, | |
| "devDependencies": { | |
| "enzyme": "^2.7.1", | |
| "jest-enzyme": "^2.1.2", | |
| "react-dom": "^15.6.1", | |
| "react-test-renderer": "^15.6.1", | |
| }, | |
| "dependencies": { | |
| "react": "^15.6.1", |
| // src/App/Map/SideWrapper/Legend/Legend.jsx | |
| import React from 'react' | |
| ... | |
| import Category from './Category/Category' | |
| import { categoryIcons } from '../../category_data' | |
| const Legend = ({ categories, date, toggleFlags }) => { | |
| const legendCategories = categories.map((category, i) => ( | |
| <Category key={i} category={category} /> |
| // src/App/Map/Legend/Legend.jsx | |
| import React, { Component } from 'react' | |
| import Category from './Category/Category' | |
| import { categoryIcons } from '../category_data' | |
| export default class Legend extends Component { | |
| categoryIcons() { | |
| return categoryIcons | |
| } |
| // src/App/About/About.jsx | |
| import React from 'react' | |
| const About = () => ( | |
| <article className="about"> | |
| <section className="who"> | |
| <h2>Who</h2> | |
| <p>We are a pair of lunatics who...</p> | |
| </section> |
| // src/App/About/About.jsx | |
| import React, { Component } from 'react' | |
| export default class About extends Component { | |
| render() { | |
| return ( | |
| <article className="about"> | |
| <section className="who"> | |
| <h2>Who</h2> |
| // Source: https://github.com/tmikeschu/the-spoken-tour | |
| // ContactForm.jsx | |
| import React, { Component } from "react" | |
| import APIService from "../../APIService/APIService" | |
| const apiService = new APIService("https://spoken-api.herokuapp.com") | |
| export default class ContactForm extends Component { | |
| constructor(props) { |
adder = Proc.new { |arg1, arg2| arg1 + arg2 }Procs in Ruby are like anonymous functions. In other words, little packages of code (defined in blocks of {} or do..end) that can be passed around as an object.
Proc is actually short for procedure, so when you pass a Proc as an argument to a method, you can think of it as giving the method a list of instructions, as opposed to a particular data structure or value.