its an operating system in 60s.
youtube.com/watch?v=tc4ROCJYbm0
UNIX was orignially built for large mainframe computers that many people would use at the same time
'use strict' | |
const compose = (...fns) => x => fns.reduce((acc, curr) => curr(acc), x) | |
const double = x => x * 2 | |
const inc = x => x + 1 | |
const doubleAndInc = compose(double, inc) | |
const Indentity = value => ({ |
'use strict' | |
const cluster = require('cluster') | |
const Cluster = cluster => { | |
return { | |
map (fn) { | |
return Cluster(fn(cluster)) | |
}, | |
valueOf() { |
Start using React and use Redux only when you need. Its not so difficult to refact to redux. It can complicate your app. Its difficult to understand. Central repository for all your state.
Its hard to components comunicate with each other, so redux comes to help.
It make a hard dependency on it.
Redux overkill things.
Jest encapsulate Jasmine. Suggestion is put yours files in the same folder as the original file.
react-test-renderer
library to use with snapshot tests.
Shallow its good to test only the parent component and not the child components. That makes easy to find where actually the error is. You should use enzyme to test React apps.