Skip to content

Commit e33bdde

Browse files
author
Peter F. Tumulty
committed
added text to the motivation section of readme
1 parent 62175f4 commit e33bdde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ This is a simple demonstration on how to use ```map()``` and ```forEach()``` met
44

55
## Motivation
66

7+
When I first used [React.js](https://reactjs.org), I discovered the javascript method ```map()``` to iterate over data in JSX. Having some previous experience writing functional code in JavaScript I already knew about the ```forEach()``` method. At first glance, I thought they served the same purpose, but when I tried using ```forEach()``` in JSX it spit out a bunch of errors.
8+
9+
This was confusing because I though these methods served the same purpose. I decided to do a deep dive in how these methods work and report my results in this website and an article I wrote [The power of the map method](https://medium.com/@petertumulty/the-power-of-the-map-method-4db6b1a73655)
10+
711
## Build status
812

913
## Installation

0 commit comments

Comments
 (0)