Table of Contents
ReactJS Tips and Tricks
1. JSON manipulation
2. Functions bind
ReactJS Tips and Tricks
1. JSON manipulation
map array:
https://codeburst.io/useful-javascript-array-and-object-methods-6c7971d93230
https://medium.com/@chrisburgin95/rewriting-javascript-sum-an-array-dbf838996ed0
https://medium.com/dailyjs/rewriting-javascript-converting-an-array-of-objects-to-an-object-ec579cafbfc7
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries
https://www.reddit.com/r/reactjs/comments/8utlxs/correct_way_of_updating_nested_value_via_setstate/
My test:
https://stackblitz.com/edit/react-sqxj25
2. Functions bind
http://reactkungfu.com/2015/07/why-and-how-to-bind-methods-in-your-react-component-classes/