Skip to content

Instantly share code, notes, and snippets.

QR qrobin

Block or report user

Report or block qrobin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View looping over list
import React, { Component } from 'react';
class componentName extends Component {
constructor(props) {
this.handleClicks = [];
this.props.friends.forEach(friend => {
this.handleClick[] = this.handleClick.bind(this,;
moimikey / after.js
Last active Dec 19, 2019
object literals for redux reducers
View after.js
// O(1)
const todo = (state, action) => {
const actions = {
ADD_TODO: () => {
return {
text: action.text,
completed: false

Javascript Shorthand Coding Techniques

My (@pongstr) opinion about shorthand coding techniques

Shorthand code is not really a replacement for normal coding but it is very handy and useful in some cases. There are tons of opinions and debates around this but, again it all comes down what is necessary for your codebase and using it responsibly.

You can’t perform that action at this time.