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

@matiastucci
matiastucci / vue-input-tag.js
Created November 3, 2016 12:39
vue-input-tag build
! function(e) {
function t(r) {
if (n[r]) return n[r].exports;
var o = n[r] = {
exports: {},
id: r,
loaded: !1
};
return e[r].call(o.exports, o, o.exports, t), o.loaded = !0, o.exports
}
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
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');