Imagine we have a reducer to control a list of items:
function listOfItems(state: Array<Object> = [], action: Object = {}): Array<Object> {
switch(action.type) {
case 'SHOW_ALL_ITEMS':
return action.data.items
default:
"You learn D3 because it gives you the ability to impement almost every major data visualization technique. It also gives you the power to create your own data visualization techniques, something a more general library can't do."
one of us! one of us!
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.