const numList = [
{ type: 'odd', payload: 1 },
{ type: 'odd', payload: 3 },
{ type: 'odd', payload: 55 },
{ type: 'even', payload: 22 },
{ type: 'even', payload: 44 },
]
// Q: modify your reducer function to accommodate this.
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter