Skip to content

Instantly share code, notes, and snippets.

@graphan
graphan / withoutRecompose.js
Last active June 16, 2017 08:52
Creating Apollo and Redux Containers without Recompose
export const LANG_QUERY = gql`
...
`;
const mapStateToProps = state => ({
language: state.language,
});
const mapDispatchToProps = dispatch => ({
changeLang: (lang) => {
dispatch(setLanguage(lang));
@sogko
sogko / app.js
Last active November 8, 2022 12:31
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');