Contenido del Curso
React Mastery
React Mastery
1. Introduction to React Fundamentals
What is React?SPAs vs. MPAs in Web DevelopmentHow React Works with the Virtual DOMIntroducing JSX in ReactCreating Complex JSX Elements Rendering Elements in ReactChallenge: Rendering ElementReact ComponentProps in ReactChallenge: Functional ComponentsConditional RenderingChallenge: Conditional Rendering - Chat NotificationChallenge: Conditional Rendering - Bank AlertRendering a Data CollectionChallenge: Rendering a Data CollectionIntroduction to React Section Sum-Up
2. Styling in React Apps
Introduction to Styling in ReactInline StylesInline Styles in PracticeChallenge: Inline StylesStyling with the CSS FileStyling with the CSS File in PracticeChallenge: Styling with the CSS FileStyling with the CSS ModulesFile Folder Structure OrganizationChallenge: CSS ModulesStyling in React Section Sum-Up
3. React Hooks and Context
Introduction: React Hooks and ContextuseState HookChallenge: Toggling VisibilityuseRef HookChallenge: Creating a Form ComponentuseEffect HookChallenge: Fetching and Displaying DatauseMemo HookChallenge: Car List FilteringContextContext in PracticeChallenge: World of Astronomy AppReact Hooks and Context Section Sum Up
Challenge: Rendering a Data Collection
Task: Show a Product List
Let's handle the data obtained from the backend and ensure its proper rendering in a list format.
The task is:
- Utilize the
map()
method to render an array of goods. - Ensure to fill the necessary gaps:
h2
must contain the good's name (name
property);p
must contain the good's description (description
property);span
must contain the string "Price:" and the good's price (price
property).
- Use the
map()
method to map over theprops.goods
array. - Ensure to set the
key
prop of the<li>
element to a unique value, such as the id property of the item. - Inside each
<li>
element, use the following elements:- An
<h2>
element to display the good's name. Access the name from the currentitem
; - A
<p>
element to display the good's description. Access the description from the currentitem
; - A
<span>
element to display the string "Price:" followed by the good's price. Access the price from the currentitem
.
- An
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 15