February 2019
Intermediate to advanced
204 pages
4h 52m
English
Using List is no different from using Map, from immutable JS. The only thing to note is that it is equivalent to the array in normal JavaScript. Study its usage in the following example:
import { List } from 'immutable';// Normal Javascript const telecom = [ { "use": "phone" }, { "system": "phone", "value": "(47) 94430047", "use": "work", "rank": 1 }, { "system": "phone", "value": "(47) 94430045", "use": "mobile", "rank": 2 }, { "system": "phone", "value": "(47) 94430044", "use": "old", "period": { "end": "2017" } } ];// To create the equivalent in Immutable:const immutablePerson = List(telecom);
Read now
Unlock full access