Day 03 - 01-05-18 - 10 hrs, 07 mins
- Read through Eloquent JavaScript Node notes from earlier this week for review.
- Read second half of Eloquent JavaScript ch 20: Node.js
- Read first half of official React docs Main Concepts section
- Read React Quickly ch 04: Making React Interactive with States
- Read Functional-Light JavaScript ch 01: Why Functional Programming and ch 02: The Nature of Functions, with additional outside material on closures.
- Did some small exercises to brush up on spread parameters, deconstructing, default parameters, high-order functions
- Did some short work with using closures in inner functions via outer functions which return inner functions
- Re-did my React stock app, making it much more functional and stateless instead of as stateful and imperative (except for a single new class component IntervalBoxGroup, which uses setInterval() to keep track of a changing state for switching images). Much cleaner code as a whole with more proper use of setState and excessive number of this calls gone.