Array prototype methods are very useful to make repeated calls using the array element values and possibly returning a transformed array by using
const values = [1, 2, 3];
const squared = values.map(x => x * x)…
It’s always great to have a way to reduce the complexity of your React components while increasing reusability.
When creating components, you might want to stick to the presentation/container pattern to create simple reusable components that…