when API called as method OPTION in react redux code example
Example 1: how to use the map method in javascript
const numbers = [1, 2, 3, 4, 5];
const bigNumbers = numbers.map(number => {
return number * 10;
});
Example 2: react must be in scope when using jsx
Must include "React" in the import line, see line 2.
Import React, { Component } from "react";