Skip to content

Instantly share code, notes, and snippets.

@schabluk
schabluk / solution.md
Created December 12, 2016 14:18
client side page rendering with react-router.

Use case: client side page rendering with react-router.

Webpack config:

const fs = require('fs')
const path = require('path')

const DIRNAME = fs.realpathSync(process.cwd())
const PATHS = {
 app: path.join(DIRNAME, 'src'),
@schabluk
schabluk / Generator.js
Last active May 10, 2017 12:14
Create ordinal numbers
class Store {
// Ordinal numbers sequence.
ordinal = null
// Ordinal numbers generator.
ordinalGenerator = function * () {
let i = 0
while (true) {
yield i++
}