Skip to content

Instantly share code, notes, and snippets.

View stereobooster's full-sized avatar
🇺🇦
stand with Ukraine

stereobooster

🇺🇦
stand with Ukraine
View GitHub Profile

Redux

  • Use Smart and Dumb Components (Know More)
  • Don't connect every component with the store which needs data from the store. Try to use pass data via props.
  • Take care in how you are storing the data in your store or else you will end up with a store with too many keys lying around, which simply becomes difficult to make sense.
  • Put things like different reducers, actions, selectors, etc in their own files for better separation of concerns.
  • Use solid redux libraries like redux-saga for async requests, redux-form for form handling, etc.
https://github.com/google/closure-compiler/wiki/Types-in-the-Closure-Type-System
React.propTypes https://github.com/facebookincubator/create-react-app/issues/209
https://github.com/clojure/clojurescript/wiki/Compile-Time-Type-Checking#type-resolution
is it ready? https://reasonablytyped.github.io/ReasonablyTyped/
https://flow.org/blog/2016/10/13/Flow-Typed/
https://github.com/flowtype/flow-typed/issues/1220
https://github.com/flowtype/flow-typed/issues/1494
@stereobooster
stereobooster / appcache-precache.js
Last active October 21, 2017 09:31 — forked from whmountains/appcache-precache.js
Create AppCache based on parameters from sw-precache
// pair with https://github.com/gr2m/appcache-nanny
// read more http://mmariani.github.io/appcachefacts/
// https://iandevlin.com/blog/2015/06/html5/getting-appcaches-fallback-to-work-crossbrowser/
const SW_PRECACHE_CONFIG = './sw-precache-config'
const OUT_FILE = '../build/manifest.appcache'
const glob = require('globby')
const { staticFileGlobs, stripPrefix, navigateFallback } = require(SW_PRECACHE_CONFIG)
const fs = require('fs')
2.3.5
@stereobooster
stereobooster / .gitignore
Last active October 13, 2017 20:21
mapbox-gl-puppeteer
node_modules