Skip to content

Instantly share code, notes, and snippets.

View matiastucci's full-sized avatar
🌏
Writing code while exploring the world

Mati Tucci matiastucci

🌏
Writing code while exploring the world
View GitHub Profile

React patterns

Higher Order Components vs. Render props

Higher Order Components (HOCs)

Una funcion que recibe un componente y devuelve otro, agregandole cierto comportamiento.

Ejemplo

cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git
@matiastucci
matiastucci / app.js
Last active September 17, 2015 00:32 — forked from sogko/app.js
gulp + expressjs + nodemon + browser-sync
'use strict';
// simple express server
var express = require('express');
var app = express();
var router = express.Router();
app.use(express.static('public'));
app.get('/', function(req, res) {
res.sendfile('./public/index.html');