Skip to content

Instantly share code, notes, and snippets.

View simonelp's full-sized avatar
🎯
Focusing

Simone La Placa simonelp

🎯
Focusing
View GitHub Profile
const f = (char) => {
const inside = (char) => {
if(char) {
output += char;
console.log(output);
return true;
} else {
output = output + 'o';
return inside;
}
@simonelp
simonelp / Filter.jsx
Created March 8, 2016 11:30 — forked from gianmarcotoso/Filter.jsx
React Filter HoC
import React from 'react';
import { Component } from 'react';
let Filter = Filterable => class extends Component {
constructor(props) {
super(props);
this.state = {
items: props.items
};