ReactJS Beginner Series: #5 - Display Names List with Array.map()

ReactJS Beginner Series: #5 - Display Names List with Array.map()

simonswiss

7 лет назад

57,463 Просмотров

**2020 UPDATE**: A brand new version of this app, built with React hooks and the Context API, is available for free on egghead.io

Here's the link to the playlist: https://egghead.io/playlists/build-a-name-picker-app-intro-to-react-hooks-context-api-1ded?af=9wenzv

Now that the data is passed to our App component, we loop through the array of names and display a "list item" element for each index of the data array, using JavaScript's "Array.map()" method.

Enjoying my teaching style? I'm creating an independent Tailwind CSS course called Pro Tailwind. Check it out at https://protailwind.com ❤️

Тэги:

#react #reactjs #react_for_beginners #build_a_react_app_from_scratch #react_tutorial #Array.map() #JavaScript #JavaScript_map() #.map() #JSX
Ссылки и html тэги не поддерживаются


Комментарии: