Skip to content

Instantly share code, notes, and snippets.

View kievechua's full-sized avatar
🏠
Working from home

Chua Kiem Fai kievechua

🏠
Working from home
View GitHub Profile
// 1
var server = require('server');
server([
require('route'),
require('api')
]);
// 2
var server = require('server');
server([
@kievechua
kievechua / propose.js
Last active February 8, 2017 06:55
ES6 Reverse Module - ES6 Module is a little hard to scan, can we put module in front instead?
/* Just create out of frustration, it's hard for me to scan through the line to add an item.
For example I want to add react-bootstrap component "Alert".
It's easier to use the proposed version to scan through and add in.
Also it can be sorted, if not multi line.
Might need to some thinking on the syntax. */
// Current
import { Breadcrumb } from 'components';
import connectData from 'helpers/connectData';
import {